public MainForm(IScriptHubModel model) { InitializeComponent(); Control.CheckForIllegalCrossThreadCalls = false; _model = model as ScriptHubModel; Initialize(); }
public ScriptForm(IScriptHubModel model, int index) : this(model) { if (index < 0) { throw new IndexOutOfRangeException("index"); } _scriptIndex = index; _scriptToEdit = _model.Scripts[index]; Text = "Edit \"" + _scriptToEdit.Name + "\""; FillForm(); }
public ScriptForm(IScriptHubModel model) { if (model == null) { throw new ArgumentNullException("model"); } InitializeComponent(); _model = model; Text = "Add new script"; _scriptIndex = ADD_NEW; }