コード例 #1
0
        public void Initialize()
        {
            CreateExpertSessionForm form = new CreateExpertSessionForm((LocalExpertHost)_expert.Manager);
            if (form.ShowDialog() == DialogResult.OK && _expert.Manager.SessionCount > 0)
            {
                toolStripButtonInitialize.Enabled = false;
                SetExpert(_expert);

                if (_expert.Manager.SessionCount > 0)
                {
                    bool showOrders = _expert.Manager.SessionsArray[0].OrderExecutionProvider != null;
                    splitter1.Visible = showOrders;
                    splitter2.Visible = showOrders;
                    tabControl1.Visible = showOrders;
                }
            }
        }
コード例 #2
0
        public void Initialize()
        {
            CreateExpertSessionForm form = new CreateExpertSessionForm((LocalExpertHost)_expert.Manager);

            if (form.ShowDialog() == DialogResult.OK && _expert.Manager.SessionCount > 0)
            {
                toolStripButtonInitialize.Enabled = false;
                SetExpert(_expert);

                if (_expert.Manager.SessionCount > 0)
                {
                    bool showOrders = _expert.Manager.SessionsArray[0].OrderExecutionProvider != null;
                    splitter1.Visible   = showOrders;
                    splitter2.Visible   = showOrders;
                    tabControl1.Visible = showOrders;
                }
            }
        }
コード例 #3
0
 /// <summary>
 /// To create new expert sessionInformation, show the creation Form.
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void toolStripButtonCreate_Click(object sender, EventArgs e)
 {
     CreateExpertSessionForm form = new CreateExpertSessionForm((LocalExpertHost)_expert.Manager);
     form.ShowDialog();
 }
コード例 #4
0
        private void toolStripButtonCreateSession_Click(object sender, EventArgs e)
        {
            CreateExpertSessionForm form = new CreateExpertSessionForm((LocalExpertHost)_expert.Manager);

            form.ShowDialog();
        }