示例#1
0
 private void BeComAddRuleClick(object sender, EventArgs e)
 {
     var rotation = new Rotation();
     var rotationForm = new RotationForm(rotation);
     rotationForm.Location = Location;
     rotationForm.ShowDialog();
     if (rotationForm.Save)
     {
         rotation = rotationForm.Rotation;
         if (BeTabs.SelectedTab.Name.Equals("TabRotations"))
         {
             AddCondition(rotation, BeRotations);
         }
     }
 }
示例#2
0
 private void EditRule(Node node)
 {
     if (node.Tag is Rotation)
     {
         var rotation     = (Rotation)node.Tag;
         var rotationForm = new RotationForm(rotation);
         rotationForm.Location = Location;
         rotationForm.ShowDialog();
         if (rotationForm.Save)
         {
             node.Tag  = rotation;
             node.Text = rotation.Name;
         }
     }
 }
示例#3
0
        private void BeComAddRuleClick(object sender, EventArgs e)
        {
            var rotation     = new Rotation();
            var rotationForm = new RotationForm(rotation);

            rotationForm.Location = Location;
            rotationForm.ShowDialog();
            if (rotationForm.Save)
            {
                rotation = rotationForm.Rotation;
                if (BeTabs.SelectedTab.Name.Equals("TabRotations"))
                {
                    AddCondition(rotation, BeRotations);
                }
            }
        }
示例#4
0
 private void EditRule(Node node)
 {
     if (node.Tag is Rotation)
     {
         var rotation = (Rotation) node.Tag;
         var rotationForm = new RotationForm(rotation);
         rotationForm.Location = Location;
         rotationForm.ShowDialog();
         if (rotationForm.Save)
         {
             node.Tag = rotation;
             node.Text = rotation.Name;
         }
     }
 }