public Assignment_Dlg(Rectangle parent_Rec, Visual_Flow_Form form) { int index; Rec = parent_Rec; the_form = form; // // Required for Windows Form Designer support // InitializeComponent(); Dialog_Helpers.Init(); this.label1.Text = "Enter an assignment." + '\n' + '\n' + "Examples:" + '\n' + " Set Coins to 5" + '\n' + " Set Count to Count + 1" + '\n' + " Set Board[3,3] to 0"; this.labelGraphics = label2.CreateGraphics(); if (Rec.Text != null) { index = Rec.Text.IndexOf(":="); if (index > 0) { this.lhsTextBox.Text = Rec.Text.Substring(0, index); this.assignment_Text.Text = Rec.Text.Substring(index + 2, Rec.Text.Length - (index + 2)); } else { this.lhsTextBox.Text = Rec.Text; } } }
public Call_Dialog(Rectangle parent_Rec, Visual_Flow_Form form) { Rec = parent_Rec; the_form = form; // // Required for Windows Form Designer support // InitializeComponent(); Dialog_Helpers.Init(); this.label1.Text = "Enter a procedure call." + '\n' + '\n' + "Examples:" + '\n' + " Wait_For_Mouse_Button(Left_Button)" + '\n' + " Open_Graph_Window(300,300)"; this.labelGraphics = label2.CreateGraphics(); if (Rec.Text != null) { this.assignment_Text.Text = Rec.Text; } }
public Return_Dlg(Oval_Return Parent_Oval, Visual_Flow_Form form) { RETURN = Parent_Oval; the_form = form; // // Required for Windows Form Designer support // InitializeComponent(); Dialog_Helpers.Init(); if ((RETURN.Text != null) && (RETURN.Text.CompareTo("") != 0)) { this.textBox1.Text = RETURN.Text; } this.labelGraphics = label4.CreateGraphics(); stringFormat = new System.Drawing.StringFormat(); // Center the block of text (top to bottom) in the rectangle. stringFormat.LineAlignment = System.Drawing.StringAlignment.Center; }
public Output_Dlg(Parallelogram Parent_Parallelogram, Visual_Flow_Form form) { PAR = Parent_Parallelogram; the_form = form; // // Required for Windows Form Designer support // InitializeComponent(); Dialog_Helpers.Init(); this.label2.Text = "Examples:" + '\n' + " " + '"' + "exact text" + '"' + '\n' + " Coins" + '\n' + " " + '"' + "Number of Coins: " + '"' + "+Coins" + '\n' + " Board[3,3]"; this.textBox1.Text = PAR.Text; this.new_line.Checked = PAR.new_line; this.labelGraphics = label4.CreateGraphics(); stringFormat = new System.Drawing.StringFormat(); // Center the block of text (top to bottom) in the rectangle. stringFormat.LineAlignment = System.Drawing.StringAlignment.Center; }
public Control_Dlg(Component parent_Cmp, Visual_Flow_Form form, bool is_loop) { Cmp = parent_Cmp; the_form = form; // // Required for Windows Form Designer support // InitializeComponent(); Dialog_Helpers.Init(); if (is_loop) { if (!Component.reverse_loop_logic) { this.label1.Text = "Enter loop exit condition." + '\n' + '\n' + this.examples; } else { this.label1.Text = "Enter loop condition." + '\n' + '\n' + this.examples; } this.Text = "Enter Loop Condition"; } else { this.label1.Text = "Enter selection condition." + '\n' + '\n' + this.examples; this.Text = "Enter Selection Condition"; } this.labelGraphics = label2.CreateGraphics(); if (Cmp.Text != null) { this.Control_Text.Text = Cmp.Text; } }
public Input_Dlg(Parallelogram Parent_Parallelogram, Visual_Flow_Form form) { PAR = Parent_Parallelogram; the_form = form; // // Required for Windows Form Designer support // InitializeComponent(); Dialog_Helpers.Init(); if ((PAR.Text != null) && (PAR.Text.CompareTo("") != 0)) { this.exprTextBox.Text = PAR.prompt; this.variableTextBox.Text = PAR.Text; } this.examplesLabel.Text = "Examples:" + '\n' + " Coins" + '\n' + " Board[3,3]"; this.labelGraphics = errorLabel.CreateGraphics(); stringFormat = new System.Drawing.StringFormat(); // Center the block of text (top to bottom) in the rectangle. stringFormat.LineAlignment = System.Drawing.StringAlignment.Center; }