private void toolStripButtonIndicators_Click(object sender, EventArgs e) { if (Session == null) { return; } ExpertSessionIndicatorsControl control = new ExpertSessionIndicatorsControl(_session, chartControl.Panes); control.AddIndicatorEvent += new ExpertSessionIndicatorsControl.AddIndicatorDelegate(control_AddIndicatorEvent); control.RemoveIndicatorEvent += new ExpertSessionIndicatorsControl.RemoveIndicatorDelegate(control_RemoveIndicatorEvent); HostingForm form = new HostingForm("Session " + _session.Info.Name + " Indicators", control); form.FormBorderStyle = FormBorderStyle.FixedDialog; form.ShowDialog(); }
private void toolStripButtonIndicators_Click(object sender, EventArgs e) { if (Session == null) { return; } ExpertSessionIndicatorsControl control = new ExpertSessionIndicatorsControl(_session, chartControl.Panes); control.AddIndicatorEvent += new ExpertSessionIndicatorsControl.AddIndicatorDelegate(control_AddIndicatorEvent); control.RemoveIndicatorEvent += new ExpertSessionIndicatorsControl.RemoveIndicatorDelegate(control_RemoveIndicatorEvent); HostingForm form = new HostingForm("Session " + _session.Info.Name + " Indicators", control); form.FormBorderStyle = FormBorderStyle.FixedDialog; form.ShowDialog(); }