示例#1
0
        private void ButtonAddClick(object sender, EventArgs e)
        {
            var form = new SettingsFormDetail(null);

            form.ShowDialog();

            UpdateView();
        }
示例#2
0
		void ListView1DoubleClick(object sender, EventArgs e) {
			// Safety check for bug #1484
			bool selectionActive = listView1.SelectedItems.Count > 0;
			if(!selectionActive) {
				button_edit.Enabled = false;
				return;
			}
			string commando = listView1.SelectedItems[0].Tag as string;

			SettingsFormDetail form = new SettingsFormDetail(commando);
			form.ShowDialog();

			UpdateView();
		}
示例#3
0
		void ListView1DoubleClick(object sender, EventArgs e) {
			// Safety check for bug #1484
			bool selectionActive = listView1.SelectedItems.Count > 0;
			if(!selectionActive) {
				button_edit.Enabled = false;
				return;
			}
			string commando = listView1.SelectedItems[0].Tag as string;

			SettingsFormDetail form = new SettingsFormDetail(commando);
			form.ShowDialog();

			UpdateView();
		}
示例#4
0
		void ButtonAddClick(object sender, EventArgs e) {
			SettingsFormDetail form = new SettingsFormDetail(null);
			form.ShowDialog();

			UpdateView();
		}