public Rectangle(SerializationInfo info, StreamingContext ctxt) : base(info, ctxt) { int index1, index2; if (this.incoming_serialization_version >= 7) { kind = (Kind_Of)info.GetValue("_kind", typeof(Kind_Of)); } else { index1 = this.Text.IndexOf("="); if (index1 > 0) { this.kind = Kind_Of.Assignment; index2 = this.Text.IndexOf(":="); // if no :=, replace = with := if (index2 <= 0) { this.Text = this.Text.Substring(0, index1) + ":=" + this.Text.Substring(index1 + 1, this.Text.Length - (index1 + 1)); } } else { this.kind = Kind_Of.Call; } } result = interpreter_pkg.statement_syntax(this.Text, (this.kind == Kind_Of.Call), this); if (result.valid) { this.parse_tree = result.tree; } else { if (!Component.warned_about_error && this.Text != "") { MessageBox.Show("Error: \n" + this.Text + "\n" + "is not recognized. Perhaps a DLL is missing?\n" + "Close RAPTOR, save the DLL and then reopen"); Component.warned_about_error = true; } this.Text = ""; } }
public Rectangle(Component Successor, int height, int width, String str_name, Kind_Of the_kind) : base(Successor, height, width, str_name) { this.init(); this.kind = the_kind; }
public Rectangle(int height, int width, String str_name, Kind_Of the_kind) : base(height, width, str_name) { this.init(); this.kind = the_kind; }