Example #1
0
        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;
        }
Example #2
0
        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;
        }