C# Class OSAE.UI.Controls.AddNewCameraViewer

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

Public Methods

Method Description
AddNewCameraViewer ( string screen, string user, string controlName = "" ) : System.Collections.Generic

Private Methods

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

Load the object types 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.

addButton_Click ( object sender, RoutedEventArgs e ) : void
btnDelete_Click ( object sender, RoutedEventArgs e ) : void
btnUpdate_Click ( object sender, RoutedEventArgs e ) : void
cancelbutton_Click ( object sender, RoutedEventArgs e ) : void
objectsComboBox_SelectionChanged ( object sender, System.Windows.Controls.SelectionChangedEventArgs e ) : void
validateForm ( string mthd ) : bool

Method Details

AddNewCameraViewer() public method

public AddNewCameraViewer ( string screen, string user, string controlName = "" ) : System.Collections.Generic
screen string
user string
controlName string
return System.Collections.Generic