Exemple #1
0
 public override void onShapeClicked()
 {
     base.onShapeClicked();
     if (base.Shape.Selected)
     {
         WhileDialog  whileBox = new WhileDialog();
         DialogResult dr       = whileBox.ShowDialog();
         if (dr == DialogResult.OK)
         {
             base.Statement = whileBox.LoopExpression;
             base.setText(Statement);
         }
     }
     base.Shape.Selected = false;
 }
Exemple #2
0
        public override void onShapeClicked()
        {
            base.onShapeClicked();
            if (Shape.Selected)
            {
                //AssignmentDialog db = new AssignmentDialog();
                WhileDialog whileBox = new WhileDialog();

                //  whileBox.setExpression(extractExpression(Statement));


                DialogResult dr = whileBox.ShowDialog();
                if (dr == DialogResult.OK)
                {
                    Statement = whileBox.LoopExpression;
                    setText(Statement);
                    //Statement = surrondExpression(Statement);
                    //setText(Statement);
                    //Shape.Label = new Crainiate.Diagramming.Label(Statement);
                }
                //MessageBox.Show();
            }
            Shape.Selected = false;
        }