Example #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);
         }
     }
 }
Example #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;
         }
     }
 }
Example #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);
                }
            }
        }
Example #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;
         }
     }
 }