Exemplo n.º 1
0
        private void lbAddCondition_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
        {
            var dlg = new ConditionDialog(null, orderManager.IBClient);

            if (dlg.ShowDialog() == DialogResult.OK)
            {
                orderBindingSource.Add(dlg.Condition);
            }
        }
Exemplo n.º 2
0
        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;
                }
            }
        }