Exemplo n.º 1
0
        private void cmdNewReq_Click(object sender, EventArgs e)
        {
            FileChanged = true;
            SpellNameMatch lr = new SpellNameMatch();

            CurrentRule.IntRules.Add(lr);
            lstRequirements.Items.Add(lr.DisplayString());
            SetCurrentReq(lr, CurrentRule.IntRules.Count - 1);
        }
Exemplo n.º 2
0
        private void cmdNewReq_Click(object sender, EventArgs e)
        {
            FileChanged = true;
            SpellNameMatch lr = new SpellNameMatch();

            if (CtrlPressed && lstRequirements.SelectedIndex != -1)
            {
                CurrentRule.IntRules.Insert(lstRequirements.SelectedIndex + 1, lr);
                lstRequirements.Items.Insert(lstRequirements.SelectedIndex + 1, lr.DisplayString());
                SetCurrentReq(lr, lstRequirements.SelectedIndex + 1);
            }
            else
            {
                CurrentRule.IntRules.Add(lr);
                lstRequirements.Items.Add(lr.DisplayString());
                SetCurrentReq(lr, CurrentRule.IntRules.Count - 1);
            }
        }
Exemplo n.º 3
0
        private void cmdNewReq_Click(object sender, EventArgs e)
        {
            FileChanged = true;
            SpellNameMatch lr = new SpellNameMatch();

			// Mag-nus changed
			if (CtrlPressed && lstRequirements.SelectedIndex != -1)
			{
				CurrentRule.IntRules.Insert(lstRequirements.SelectedIndex + 1, lr);
				lstRequirements.Items.Insert(lstRequirements.SelectedIndex + 1, lr.DisplayString());
				SetCurrentReq(lr, lstRequirements.SelectedIndex + 1);
			}
			else
			{
				// Traditional
				CurrentRule.IntRules.Add(lr);
				lstRequirements.Items.Add(lr.DisplayString());
				SetCurrentReq(lr, CurrentRule.IntRules.Count - 1);
			}
        }