C# Class QSAttachment.Attachment

Show file Open project: QualitySolution/QSProjects

Public Properties

Property Type Description
AttachToTable string
ItemId int
MaxFileNameLength uint
TableName string

Public Methods

Method Description
Attachment ( ) : System
SaveChanges ( ) : void
SaveChanges ( MySqlTransaction trans ) : void
UpdateFileList ( bool copy = false ) : void

Protected Methods

Method Description
Build ( ) : void
OnButtonAddClicked ( object sender, EventArgs e ) : void
OnButtonDeleteClicked ( object sender, EventArgs e ) : void
OnButtonOpenClicked ( object sender, EventArgs e ) : void
OnButtonSaveClicked ( object sender, EventArgs e ) : void
OnButtonScanClicked ( object sender, EventArgs e ) : void
OnIconviewFilesItemActivated ( object o, ItemActivatedArgs args ) : void
OnIconviewFilesSelectionChanged ( object sender, EventArgs e ) : void

Private Methods

Method Description
LoadFileFromDB ( int id ) : byte[]

Method Details

Attachment() public method

public Attachment ( ) : System
return System

Build() protected method

protected Build ( ) : void
return void

OnButtonAddClicked() protected method

protected OnButtonAddClicked ( object sender, EventArgs e ) : void
sender object
e EventArgs
return void

OnButtonDeleteClicked() protected method

protected OnButtonDeleteClicked ( object sender, EventArgs e ) : void
sender object
e EventArgs
return void

OnButtonOpenClicked() protected method

protected OnButtonOpenClicked ( object sender, EventArgs e ) : void
sender object
e EventArgs
return void

OnButtonSaveClicked() protected method

protected OnButtonSaveClicked ( object sender, EventArgs e ) : void
sender object
e EventArgs
return void

OnButtonScanClicked() protected method

protected OnButtonScanClicked ( object sender, EventArgs e ) : void
sender object
e EventArgs
return void

OnIconviewFilesItemActivated() protected method

protected OnIconviewFilesItemActivated ( object o, ItemActivatedArgs args ) : void
o object
args ItemActivatedArgs
return void

OnIconviewFilesSelectionChanged() protected method

protected OnIconviewFilesSelectionChanged ( object sender, EventArgs e ) : void
sender object
e EventArgs
return void

SaveChanges() public method

public SaveChanges ( ) : void
return void

SaveChanges() public method

public SaveChanges ( MySqlTransaction trans ) : void
trans MySqlTransaction
return void

UpdateFileList() public method

public UpdateFileList ( bool copy = false ) : void
copy bool
return void

Property Details

AttachToTable public property

public string AttachToTable
return string

ItemId public property

public int ItemId
return int

MaxFileNameLength public static property

public static uint MaxFileNameLength
return uint

TableName public property

public string TableName
return string