private void BtnAddCommandClick(object sender, EventArgs e) { using (var arc = new AddRemoteCommand()) { if (arc.ShowDialog(this) == DialogResult.OK) { RenderCommands(); } } }
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(); } } } } }
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(); } } } } }