C# Class OSAE.UI.Controls.AddControlScreen

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

Public Properties

Property Type Description
currentScreen string

Public Methods

Method Description
AddControlScreen ( string screen, string user ) : System

Protected Methods

Method Description
si_ImagePicked ( object sender, EventArgs e ) : void

Private Methods

Method Description
Enable_Buttons ( ) : void
LoadCurrentScreenObject ( string screenName ) : void
LoadImage ( byte imageData ) : BitmapImage
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.

btnAdd_Click ( object sender, RoutedEventArgs e ) : void
btnCancel_Click ( object sender, RoutedEventArgs e ) : void
btnDelete_Click ( object sender, RoutedEventArgs e ) : void
btnOpen_Click ( object sender, RoutedEventArgs e ) : void
btnUpdate_Click ( object sender, RoutedEventArgs e ) : void
txtScreenName_TextChanged ( object sender, System.Windows.Controls.TextChangedEventArgs e ) : void
validateForm ( string mthd ) : bool

Method Details

AddControlScreen() public method

public AddControlScreen ( string screen, string user ) : System
screen string
user string
return System

si_ImagePicked() protected method

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

Property Details

currentScreen public_oe property

public string currentScreen
return string