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; } } }
/// <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(); }
private void toolStripButtonCreateSession_Click(object sender, EventArgs e) { CreateExpertSessionForm form = new CreateExpertSessionForm((LocalExpertHost)_expert.Manager); form.ShowDialog(); }