C# Class StateButton.AddNewControl

Interaction logic for AddNewControl.xaml
Inheritance: System.Windows.Controls.UserControl
Afficher le fichier Open project: opensourceautomation/Open-Source-Automation

Méthodes publiques

Свойство Type Description
_controlName string
currentScreen string

Méthodes publiques

Méthode Description
AddNewControl ( string screen, string pluginName, string user, string controlName = "" ) : System

Private Methods

Méthode 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.

ValidateForm ( string mthd ) : bool
addButton_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
cancelbutton_Click ( object sender, RoutedEventArgs e ) : void
getExtraParams ( string controlName ) : void

Loads extra Parmeters in to edit screen

objectsComboBox_SelectionChanged ( object sender, System.Windows.Controls.SelectionChangedEventArgs e ) : void
paramList_SelectionChanged ( object sender, System.Windows.Controls.SelectionChangedEventArgs e ) : void
saveParmValue_Click ( object sender, RoutedEventArgs e ) : void

Method Details

AddNewControl() public méthode

public AddNewControl ( string screen, string pluginName, string user, string controlName = "" ) : System
screen string
pluginName string
user string
controlName string
Résultat System

Property Details

_controlName public_oe property

public string _controlName
Résultat string

currentScreen public_oe property

public string currentScreen
Résultat string