C# Class OSAE.UI.Controls.AddControlClickImage

Interaction logic for AddControlClickImage.xaml
Inheritance: System.Windows.Controls.UserControl
Mostra file Open project: opensourceautomation/Open-Source-Automation Class Usage Examples

Public Methods

Method Description
AddControlClickImage ( string screen, string user, string controlName = "" ) : System

Protected Methods

Method Description
siNormal_ImagePicked ( object sender, EventArgs e ) : void
siPressed_ImagePicked ( object sender, EventArgs e ) : void

Private Methods

Method Description
Enable_Buttons ( ) : void
LoadCurrentScreenObject ( string controlName ) : void

Load the objects from the DB into the combo box

LoadImage ( byte imageData ) : BitmapImage
LoadObjects ( ) : void

Load the objects from the DB into the combo box

NotifyParentFinished ( ) : void

Let the hosting contol know that we are done

At present it tells the parent to close, this could later be altered to have a event that fires to the parent allowing them to decide what to do when the control is finished. If the control is being hosted in an element host this will have no affect as the parent is the element host and not the form.

SelectNormalImage_Click ( object sender, RoutedEventArgs e ) : void
SelectPressedImage_Click ( object sender, RoutedEventArgs e ) : void
Validate_Initial_Coordinates ( ) : void
btnAdd_Click ( object sender, RoutedEventArgs e ) : void
btnCancel_Click ( object sender, RoutedEventArgs e ) : void
btnDelete_Click ( object sender, RoutedEventArgs e ) : void
btnUpdate_Click ( object sender, RoutedEventArgs e ) : void
cboPressMethod_SelectionChanged ( object sender, System.Windows.Controls.SelectionChangedEventArgs e ) : void
cboPressObject_SelectionChanged ( object sender, System.Windows.Controls.SelectionChangedEventArgs e ) : void
cboPressScript_SelectionChanged ( object sender, System.Windows.Controls.SelectionChangedEventArgs e ) : void
cboReleaseMethod_SelectionChanged ( object sender, System.Windows.Controls.SelectionChangedEventArgs e ) : void
cboReleaseObject_SelectionChanged ( object sender, System.Windows.Controls.SelectionChangedEventArgs e ) : void
cboReleaseScript_SelectionChanged ( object sender, System.Windows.Controls.SelectionChangedEventArgs e ) : void
txtControlName_TextChanged ( object sender, System.Windows.Controls.TextChangedEventArgs e ) : void
validateForm ( string mthd ) : bool

Method Details

AddControlClickImage() public method

public AddControlClickImage ( string screen, string user, string controlName = "" ) : System
screen string
user string
controlName string
return System

siNormal_ImagePicked() protected method

protected siNormal_ImagePicked ( object sender, EventArgs e ) : void
sender object
e System.EventArgs
return void

siPressed_ImagePicked() protected method

protected siPressed_ImagePicked ( object sender, EventArgs e ) : void
sender object
e System.EventArgs
return void