Exemplo n.º 1
0
 public AddControl(Models.Control control, IControlIdentifierSelector manualSelector)
 {
     InitializeComponent();
     Control           = control;
     lbTitle.Text      = "Edit Control";
     btnCreate.Content = "Save";
     edit         = true;
     tbName.Text  = Control.Name;
     NodeSelector = new SelectControlNode(control.Parent.DiscoveredControls, manualSelector);
     NodeSelector.SelectedNode = control.Identifier;
     tbBaseNode.Text           = control.Identifier.Name;
 }
Exemplo n.º 2
0
 public AddControl(ObservableCollection <DiscoveredControl> discoveredControls, IControlIdentifierSelector manualSelector)
 {
     InitializeComponent();
     NodeSelector = new SelectControlNode(discoveredControls, manualSelector);
 }