Example #1
0
 private void BtnAddCommandClick(object sender, EventArgs e)
 {
     using (var arc = new AddRemoteCommand())
     {
         if (arc.ShowDialog(this) == DialogResult.OK)
         {
             RenderCommands();
         }
     }
 }
Example #2
0
        private void BtnAddCommandClick(object sender, EventArgs e)
        {
            using (var arc = new AddRemoteCommand())
            {
                if (arc.ShowDialog(this) == DialogResult.OK)
                {
                    RenderCommands();
                }

            }
        }
Example #3
0
        private void btnEditCommand_Click(object sender, EventArgs e)
        {
            if (lbManualAlerts.SelectedIndex > -1)
            {
                var c = (MainForm.ListItem2)lbManualAlerts.SelectedItem;
                objectsCommand oc = MainForm.RemoteCommands.FirstOrDefault(p => p.id == c.Value);
                if (oc != null)
                {
                    using (var arc = new AddRemoteCommand {OC = oc})
                    {
                        if (arc.ShowDialog(this) == DialogResult.OK)
                        {
                            RenderCommands();
                        }

                    }
                }
            }
        }
Example #4
0
 private void btnEditCommand_Click(object sender, EventArgs e)
 {
     if (lbManualAlerts.SelectedIndex > -1)
     {
         var            c  = (MainForm.ListItem2)lbManualAlerts.SelectedItem;
         objectsCommand oc = MainForm.RemoteCommands.FirstOrDefault(p => p.id == c.Value);
         if (oc != null)
         {
             using (var arc = new AddRemoteCommand {
                 OC = oc
             })
             {
                 if (arc.ShowDialog(this) == DialogResult.OK)
                 {
                     RenderCommands();
                 }
             }
         }
     }
 }