Пример #1
0
 public NodeForm(Page page, Node node) : this()
 {
     ArgumentForm.Create(page, node).Parent = this.argumentPanel;
     VariableForm.Create(page).Parent       = this.variablePanel;
     this.nodeNameTextBox.DataBindings.Add("Text", node, "Name", false, DataSourceUpdateMode.OnPropertyChanged);
     this.nodeNameTextBox.PreviewKeyDown += NodeNameTextBox_PreviewKeyDown;
     this.Text = "Activity Editor - " + node.Activity.GetType().FullName;
 }
Пример #2
0
        public static Panel Create(Page page)
        {
            var form = new VariableForm();

            form.variableTreeView.SetWindowTheme("explorer");
            form.variableTreeView.Tag         = page.Variables;
            form.variableTextBox.TextChanged += (sender, e) => form.FilterTreeView();
            form.FilterTreeView();
            return(form.variablePanel);
        }