private void lbAddCondition_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e) { var dlg = new ConditionDialog(null, orderManager.IBClient); if (dlg.ShowDialog() == DialogResult.OK) { orderBindingSource.Add(dlg.Condition); } }
private void conditionList_CellDoubleClick(object sender, DataGridViewCellEventArgs e) { if (e.ColumnIndex == 0) { var dlg = new ConditionDialog(selectedCondition, orderManager.IBClient); if (dlg.ShowDialog() == DialogResult.OK) { selectedCondition = dlg.Condition; } } }