Exemple #1
0
 private void OnConstruction()
 {
     Global = new Globals();
     ParentNode.IsSelected = true;
     ParentNode.Tag = "New Node";
     ParentNode.Description = "Node Description";
 }
        public GlobalVariables(Globals globals)
        {
            InitializeComponent();

            _globals = globals;

            FillFields();
        }
        private void ShowEnumerations(Globals globals)
        {
            var enums = new EnumerationsEditor(globals);
            _host.Dock = DockStyle.Fill;
            _host.Location = new Point(0, 0);
            _host.Name = "host";
            //_host.Size = new Size(221, 135);
            _host.TabIndex = 0;
            _host.Child = enums;
            this.Size = new Size(400, 150);
            this.Text = @"Global Variables";

            enums.OKButton.Click += Button_Click;
        }
        public void ShowGlobals(Globals global)
        {
            var globals = new GlobalVariables(global);
            _host.Dock = DockStyle.Fill;
            _host.Location = new Point(0, 0);
            _host.Name = "host";
            //_host.Size = new Size(221, 135);
            _host.TabIndex = 0;
            _host.Child = globals;
            this.Size = new Size(400, 150);
            this.Text = @"Global Variables";

            globals.CancelButton.Click += Button_Click;
            globals.OKButton.Click += Button_Click;
        }