Exemple #1
0
        private void menuAdd_Click(object sender, EventArgs e)
        {
            var fm = new RoutingRuleSettingForm();

            fm.EditIndex = -1;
            if (fm.ShowDialog() == DialogResult.OK)
            {
                RefreshRoutingsView();
            }
        }
Exemple #2
0
        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();
            }
        }