Example #1
0
 private void BtnAddAction_Click(object sender, EventArgs e)
 {
     using (var form = new ActionForm())
     {
         form.MainFForm = this;
         form.ShowDialog();
     }
 }
Example #2
0
        private void BtnEditAction_Click(object sender, EventArgs e)
        {
            var action = GetSelectedAction();

            if (action != null)
            {
                using (var form = new ActionForm())
                {
                    form.MainFForm = this;
                    form.Action    = action;
                    form.ShowDialog();
                }
            }
        }