示例#1
0
        private void menuAdd_Click(object sender, EventArgs e)
        {
            var fm = new RoutingRuleSettingDetailsForm();

            fm.rulesItem = new RulesItem();
            if (fm.ShowDialog() == DialogResult.OK)
            {
                routingItem.rules.Insert(0, fm.rulesItem);
                RefreshRoutingsView();
            }
        }
示例#2
0
        private void lvRoutings_DoubleClick(object sender, EventArgs e)
        {
            int index = GetLvSelectedIndex();

            if (index < 0)
            {
                return;
            }
            var fm = new RoutingRuleSettingDetailsForm();

            fm.rulesItem = routingItem.rules[index];
            if (fm.ShowDialog() == DialogResult.OK)
            {
                RefreshRoutingsView();
            }
        }