Esempio n. 1
0
        private void bbiOptions_ItemClick(object sender, ItemClickEventArgs e)
        {
            DocumentGroup optionsGroup = null;

            if (ParentView == null)
            {
                return;
            }

            if (ParentView.DocumentGroups.Count == 1)
            {
                ParentView.Orientation = Orientation.Vertical;
                optionsGroup           = new DocumentGroup();
                ParentView.DocumentGroups.Add(optionsGroup);
            }
            else
            {
                optionsGroup = ParentView.DocumentGroups[1];
            }

            if (optionsControl == null)
            {
                optionsControl      = new OptionUserControl();
                optionsControl.Text = "Options";
                var document = (Document)ParentView.AddDocument(optionsControl);
                ParentView.Controller.Dock(document, optionsGroup);
                document.Disposed += OptioDocument_Disposed;
            }

            ShowOptions(selectedOptions);
        }
Esempio n. 2
0
        private void aceOption_Click(object sender, EventArgs e)
        {
            var instrumentForm = new Controls.OptionUserControl();

            instrumentForm.Text = "Options";
            tabbedView.AddDocument(instrumentForm);
            tabbedView.ActivateDocument(instrumentForm);

            instrumentForm.ShowOptions(null);
        }
Esempio n. 3
0
 private void OptioDocument_Disposed(object sender, EventArgs e)
 {
     optionsControl = null;
 }