public AssembleFileDialog() { InitializeComponent(); new AssembleFileInteractor().Attach(this); FileName = new TextBoxWrapper(txtFileName); AssemblerList = ddlAssembler; }
public void testCreationSequence() { ConfInt fValue = new ConfInt("test/fValue", 10, 10, 100); test_ConfigGUI gui2 = new test_ConfigGUI(); TrackBarWrapper wrapper3 = new TrackBarWrapper(gui2.trackBar3, "test/fValue"); gui2.Show(); AssertEquals(gui2.trackBar3.Value, fValue.Value); TextBoxWrapper wrapper = new TextBoxWrapper(gui2.textBox4, "test/aValue"); ConfString aValue = new ConfString("test/aValue", "aaa"); AssertEquals(gui2.textBox4.Text, "aaa"); ConfString bValue = new ConfString("test/bValue", "bbb"); TextBoxWrapper wrapper2 = new TextBoxWrapper(gui2.textBox5, "test/bValue"); AssertEquals(gui2.textBox5.Text, "bbb"); fValue.Unregister(); aValue.Unregister(); bValue.Unregister(); gui2.Dispose(); }
bool IExtenderProvider.CanExtend(object extendee) { //find AutocompleteMenu with lowest hashcode if (Container != null) { foreach (var comp in Container.Components) { if (comp is AutocompleteMenu) { if (comp.GetHashCode() < GetHashCode()) { return(false); } } } } //we are main autocomplete menu on form ... //check extendee as TextBox if (!(extendee is Control)) { return(false); } var temp = TextBoxWrapper.Create(extendee as Control); return(temp != null); }
public HexDisassemblerView() { InitializeComponent(); Architectures = new ComboBoxWrapper(this.ddlArchitecture); Address = new TextBoxWrapper(this.txtAddress); HexBytes = new TextBoxWrapper(this.txtHexBytes); Disassembly = new TextBoxWrapper(this.txtDisassembly); }
public AssembleFileDialog() { InitializeComponent(); FileName = new TextBoxWrapper(txtFileName); ArchitectureList = ddlAssembler; BrowseButton = new ButtonWrapper(btnBrowse); new AssembleFileInteractor().Attach(this); }
public BlockNameDialog(Procedure proc, Block block) { InitializeComponent(); BlockId = new LabelWrapper(lblBlockID); BlockName = new TextBoxWrapper(txtUserName); OkButton = new ButtonWrapper(btnOK); this.ErrorMessage = new LabelWrapper(lblErrorText); new BlockNameInteractor(this, proc, block); }
public KeyBindingsDialog() { InitializeComponent(); Commands = new ListboxWrapper(listCommands); CommandName = new TextBoxWrapper(txtCommandName); Windows = new ComboBoxWrapper(ddlWindows); CommandKeys = new ComboBoxWrapper(ddlCommandShortcuts); Shortcut = new TextBoxWrapper(txtShortCut); new KeyBindingsInteractor().Attach(this); }
public CallSiteDialog() { InitializeComponent(); OkButton = new ButtonWrapper(btnOK); CancellationButton = new ButtonWrapper(btnCancel); Signature = new TextBoxWrapper(txtSignature); NoReturn = new CheckBoxWrapper(chkNoReturn); this.interactor = new CallSiteInteractor(); interactor.Attach(this); }
protected void OnWrapperNeeded(WrapperNeededEventArgs args) { if (WrapperNeeded != null) { WrapperNeeded(this, args); } if (args.Wrapper == null) { args.Wrapper = TextBoxWrapper.Create(args.TargetControl); } }
public OpenAsDialog() { InitializeComponent(); AddressTextBox = new TextBoxWrapper(txtAddress); Architectures = new ComboBoxWrapper(ddlArchitectures); Platforms = new ComboBoxWrapper(ddlEnvironments); FileName = new TextBoxWrapper(textBox1); BrowseButton = new ButtonWrapper(btnBrowse); OkButton = new ButtonWrapper(btnOk); new OpenAsInteractor().Attach(this); }
public SearchDialog() { InitializeComponent(); Patterns = new ComboBoxWrapper(ddlPatterns); RegexCheckbox = new CheckBoxWrapper(chkRegexp); Encodings = new ComboBoxWrapper(ddlEncoding); Scopes = new ComboBoxWrapper(ddlScope); SearchButton = new ButtonWrapper(btnSearch); StartAddress = new TextBoxWrapper(txtStartAddress); EndAddress = new TextBoxWrapper(txtEndAddress); ScannedMemory = new CheckBoxWrapper(chkScanned); UnscannedMemory = new CheckBoxWrapper(chkUnscanned); new SearchDialogInteractor().Attach(this); }
public SymbolSourceDialog() { InitializeComponent(); AssemblyFile = new TextBoxWrapper(txtAssembly); BrowseAssemblyFile = new ButtonWrapper(btnPickAssembly); OkButton = new ButtonWrapper(btnOk); SymbolFileUrl = new TextBoxWrapper(txtSymbolFile); BrowseSymbolFile = new ButtonWrapper(btnSymbolFile); SymbolSourceClasses = new ListboxWrapper(listClasses); SymbolSourceList = new ListViewWrapper(listSources); CustomSourceCheckbox = new CheckBoxWrapper(chkCustomSource); new SymbolSourceInteractor().Attach(this); }
protected void initForTesting() { textBoxWrapper1 = new TextBoxWrapper(textBox1, "test/aCount"); textBoxWrapper2 = new TextBoxWrapper(textBox2, "test/aCount"); trackBarWrapper1 = new TrackBarWrapper(trackBar1, "test/bCount"); radioGroupWrapper1 = new RadioGroupWrapper("test/cCount"); radioGroupWrapper1.AddRadioButton(radioButton1); radioGroupWrapper1.AddRadioButton(radioButton2); radioGroupWrapper1.AddRadioButton(radioButton3); radioGroupWrapper2 = new RadioGroupWrapper("test/cCount"); radioGroupWrapper2.AddRadioButton(radioButton4); radioGroupWrapper2.AddRadioButton(radioButton5); radioGroupWrapper2.AddRadioButton(radioButton6); }
private void ValidateCommandName(TextBoxWrapper check, bool isMainChatCommand, string primaryCommand, params string[] alternateCommands) { TextBoxWrapper[] commandEdits = { edtChatCommand, edtCoordsCommand, edtDestCommand, edtFindCommand }; bool ok; if (check.Text == "") { ok = false; } else { ok = true; foreach (TextBoxWrapper edt in commandEdits) { if (edt != check && edt.Text == check.Text) { if (isMainChatCommand) { Util.Error("The main chat command cannot be the same as another " + "goarrow chat command."); } else { Util.Error("The '/" + edtChatCommand.Text + " " + primaryCommand + "' command alias cannot be the same as another goarrow chat command."); } ok = false; break; } } } if (!ok) { List<string> possibleCommands = new List<string>(alternateCommands.Length + 1); possibleCommands.Add(primaryCommand); possibleCommands.AddRange(alternateCommands); foreach (string cmd in possibleCommands) { ok = true; foreach (TextBoxWrapper edt in commandEdits) { if (edt != check && edt.Text == cmd) { ok = false; break; } } if (ok) { check.Text = cmd; break; } } } }
public TextFileEditor() { InitializeComponent(); TextBox = new TextBoxWrapper(textBox); SaveButton = new ToolStripButtonWrapper(saveButton); }