Пример #1
0
        private void NewCond_Click(object sender, EventArgs e)
        {
            ConditionForm r = new ConditionForm(new Condition()
            {
                Source = Program.Context.Config.DefaultSource
            });

            r.Saved += ConditionSaved;
            r.Show();
        }
Пример #2
0
        private void editCondition(object sender, EventArgs e)
        {
            if (condList.SelectedItem == null)
            {
                return;
            }
            Condition selected = Program.Context.GetCondition((string)condList.SelectedItem, null);

            if (selected != null)
            {
                string        sel = selected.Name;
                ConditionForm r   = new ConditionForm(selected.Clone());
                r.Saved += ConditionSaved;
                r.Show();
            }
        }