private void dockPanel1_ActiveDocumentChanged(object sender, EventArgs e) { if (!(((DockPanel)sender).ActiveContent is frmTick)) { return; } frmTick tickForm = (frmTick)((DockPanel)sender).ActiveContent; if (tickForm != null) { Util.OrderSettingForm.Change(tickForm.Tick); } }
private void tsOrder_Click(object sender, EventArgs e) { frmTick tick = new frmTick(Util.TickSeqNo.NextNumber()); tick.Show(dockPanel1); }