private void menuAdd_Click(object sender, EventArgs e) { var fm = new RoutingRuleSettingForm(); fm.EditIndex = -1; if (fm.ShowDialog() == DialogResult.OK) { RefreshRoutingsView(); } }
private void lvRoutings_DoubleClick(object sender, EventArgs e) { int index = GetLvSelectedIndex(); if (index < 0) { return; } var fm = new RoutingRuleSettingForm(); fm.EditIndex = index; if (fm.ShowDialog() == DialogResult.OK) { RefreshRoutingsView(); } }