Coder Social home page Coder Social logo

bekosan / productivityfunctions Goto Github PK

View Code? Open in Web Editor NEW
15.0 3.0 8.0 35 KB

This is a list of extension methods that make it easy to work with common WinForms Controls and classes.

License: MIT License

C# 100.00%
byte-array picturebox savefiledialog combobox datagridview datasource extension methods winforms winforms-library

productivityfunctions's Introduction

ProductivityFunctions

ProductivityLogo

This is a list of extension methods that make it easy to work with comon WinForms Controls and classes.

Release Notes

v1.0.0

PictureBox Methods :

Method Description
LoadImageFormFile() Loads image form image file you select.
LoadImageFormFile() Loads image form image file you select.
LoadImageFormByteArray() This will load image form byte array you passed into this method.
GetByteImage() Will return a byte array copy of image inside the PictureBox.
SaveImageInFile() Show SaveFileDialog to save image by it , you can specify the filter and title as parameters on this method.

DataGridView Methods:

Method Description
UpdateDataSource() This method takes one parameter which is a datasource . Note :It disables the AutoGenerateColumns Property.
ExportToCVSFile() Show SaveFileDialog and you can set its title by passing title as parameter.
ExportToExcelFile() Same as the last one it takes title as parameter.
ExportToPDFFile() Exports DataGridView to pdf file.

ComboBox Methods :

Method Description
UpdateDataSource() It takes 3 parameters,*dataSource // the data source. *displayMember // the display member for the ComboBox. *valueMember // thevalue member for the ComboBox Its sets SelectedIndex Property to -1

Form Methods :

Method Description
ClearForm() clears all textboxes and datetimepickers and comboboxes inside the form.

Byte Array Methods :

Method Description
GetImageFromByteArray() it returns a Image Object from the byte array.

Exception Class Methods :

Method Description
ExportExceptionData() Its export important exception data to csv file.

v2.0.0 Added New Functions.

ListView Functions:

Method Description
LoadFoldersList() Takes one parameter which is parentDirectory . its loads all the folders in parentDirectory to list view.
LoadFoldersListAysnc() Takes one parameter which is parentDirectory . its loads all the folders in parentDirectory to list view aysnc.
LoadFilesList() Takes one parameter which is parentDirectory . its loads all the files in parentDirectory to list view.
LoadFoldersListAysnc() Takes one parameter which is parentDirectory . its loads all the folders in parentDirectory to list view aysnc.
LoadFilesListWithIcons() Takes one parameter which is parentDirectory . its loads all the files with there icons in parentDirectory to list view.
LoadFilesListWithIconsAysnc() Takes one parameter which is parentDirectory . its loads all the files with there icons in parentDirectory to list view aysnc.

DataGridViewComboBoxCell Methods :

Method Description
UpdateDataSource() It takes 3 parameters *dataSource // the data source. *displayMember // the display member for the DataGridViewComboBoxCell. *valueMember // the value member for the DataGridViewComboBoxCell

####Important Note : Use this on in DataGridView.RowsAdded Event.

ImageList Methods :

Method Description
FillImageList() Takes one parameter icons List List. it fills the ImageList.Images Property.

GetLatest Version From nuget.org

Productivity Functions Nuget

productivityfunctions's People

Contributors

bekosan avatar imgbotapp avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

productivityfunctions's Issues

ListBoxControl

  • LoadAllFiles().
  • LoadAllFolders().
  • LoadAllFilesAysnc().
  • LoadAllFoldersAysnc().

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.