Exemple #1
0
        public override void onShapeClicked()
        {
            if (base.Shape.Selected && Controller.DeleteChoosed)
            {
                base.removeFromModel();
                Controller.DeleteChoosed = false;
                base.Shape.Selected      = false;
            }

            if (base.Shape.Selected)
            {
                IfDialog ifBox = new IfDialog();
                if (!String.IsNullOrEmpty(Statement))
                {
                    MessageBox.Show("Empty Statement!");
                }

                DialogResult dr = ifBox.ShowDialog();
                if (dr == DialogResult.OK)
                {
                    base.Statement = ifBox.DecisionExpression;
                    base.setText(Statement);
                }
            }
            base.Shape.Selected = false;
        }
Exemple #2
0
 public override void onShapeClicked()
 {
     if (Shape.Selected && Controller.DeleteChoosed)
     {
         removeFromModel();
         Controller.DeleteChoosed = false;
         Shape.Selected           = false;
     }
     if (Shape.Selected)
     {
         //AssignmentDialog db = new AssignmentDialog();
         IfDialog ifBox = new IfDialog();
         if (!String.IsNullOrEmpty(Statement))
         {
             // ifBox.setExpression(extractExpression(Statement));
         }
         DialogResult dr = ifBox.ShowDialog();
         if (dr == DialogResult.OK)
         {
             Statement = ifBox.DecisionExpression;
             // Statement = surrondExpression(Statement);
             setText(Statement);
             //Shape.Label = new Crainiate.Diagramming.Label(Statement);
         }
         //MessageBox.Show();
     }
     Shape.Selected = false;
 }
Exemple #3
0
 public override void onShapeClicked()
 {
     base.onShapeClicked();
     if (base.Shape.Selected)
     {
         IfDialog     ifBox = new IfDialog();
         DialogResult dr    = ifBox.ShowDialog();
         if (dr == DialogResult.OK)
         {
             base.Statement = ifBox.DecisionExpression;
             base.setText(Statement);
         }
     }
     base.Shape.Selected = false;
 }
        public override void onShapeClicked()
        {
            base.onShapeClicked();
            if (Shape.Selected)
            {
                IfDialog ifBox = new IfDialog();

                /* if (!String.IsNullOrEmpty(Statement))
                 * {
                 *   ifBox.setExpression(extractExpression(Statement));
                 *
                 * }*/
                DialogResult dr = ifBox.ShowDialog();
                if (dr == DialogResult.OK)
                {
                    Statement = ifBox.DecisionExpression;
                    //Statement = surrondExpression(Statement);
                    setText(Statement);
                    //Shape.Label = new Crainiate.Diagramming.Label(Statement);
                }
                //MessageBox.Show();
            }
            Shape.Selected = false;
        }