private void OnToolStripPaint(Object sender, PaintEventArgs e) { Color tborder = GetThemeColor("ToolStripTextBoxControl.BorderColor"); foreach (ToolStripItem item in this.toolStrip.Items) { if (item is ToolStripTextBox) { ToolStripTextBox textBox = item as ToolStripTextBox; if (tborder != Color.Empty) { Size size = textBox.TextBox.Size; Point location = textBox.TextBox.Location; if (textBox.BorderStyle != BorderStyle.None) { textBox.Margin = new Padding(2, 1, 2, 1); textBox.BorderStyle = BorderStyle.None; } e.Graphics.FillRectangle(new SolidBrush(item.BackColor), location.X - 2, location.Y - 3, size.Width + 2, size.Height + 6); e.Graphics.DrawRectangle(new Pen(tborder), location.X - 2, location.Y - 3, size.Width + 2, size.Height + 6); } else if (textBox.BorderStyle != BorderStyle.Fixed3D) // Reset { textBox.Margin = new Padding(0); textBox.BorderStyle = BorderStyle.Fixed3D; } } } }
public BrowseData(ToolStripTextBox textBox, Button buttonOk, CtrlType ctrlType) { _textBox = textBox; _buttonOk = buttonOk; _ctrlType = ctrlType; buttonOk.Enabled = false; }
private TabPage TapPageCreate() { DataGridView = new DataGridView() { Location = new Point(0, 0), AllowUserToAddRows = false, RowHeadersWidth = 60, Width = 500, Dock = DockStyle.Fill }; // // BottomValueToolStripMenuItem // this.BottomValueToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem() { Name = "BottomValueToolStripMenuItem", Size = new System.Drawing.Size(223, 22), Text = "Провести факторный аналіз" }; this.BottomValueToolStripMenuItem.Click += new System.EventHandler(this.BottomValueToolStripMenuItem_Click); this.MinimalDispers = new ToolStripTextBox() { Name = "DataVariable", Text = "0" }; // // CorelContextMenuStrip // ContextMenuStrip = new ContextMenuStrip(); DataGridView.ContextMenuStrip = ContextMenuStrip; this.BottomValueToolStripMenuItem.DropDownItems.AddRange(new ToolStripItem[] { this.MinimalDispers, }); this.ContextMenuStrip.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { this.BottomValueToolStripMenuItem, }); System.Windows.Forms.TabPage tabPagenew = new TabPage(); tabPagenew.Controls.Add(DataGridView); tabPagenew.Location = new System.Drawing.Point(4, 22); tabPagenew.Name = "tabPage3"; tabPagenew.Padding = new System.Windows.Forms.Padding(3); tabPagenew.Size = new System.Drawing.Size(1005, 273); tabPagenew.TabIndex = 0; tabPagenew.Text = "Факторній аналіз"; tabPagenew.UseVisualStyleBackColor = true; tabPagenew.ResumeLayout(false); return(tabPagenew); }
public void Constructor () { ToolStripTextBox tsi = new ToolStripTextBox (); Assert.AreEqual (false, tsi.AcceptsReturn, "A1"); Assert.AreEqual (false, tsi.AcceptsTab, "A2"); Assert.AreEqual ("System.Windows.Forms.AutoCompleteStringCollection", tsi.AutoCompleteCustomSource.GetType ().ToString (), "A3"); Assert.AreEqual (AutoCompleteMode.None, tsi.AutoCompleteMode, "A4"); Assert.AreEqual (AutoCompleteSource.None, tsi.AutoCompleteSource, "A5"); Assert.AreEqual (BorderStyle.Fixed3D, tsi.BorderStyle, "A6"); Assert.AreEqual (false, tsi.CanUndo, "A7"); Assert.AreEqual (CharacterCasing.Normal, tsi.CharacterCasing, "A8"); Assert.AreEqual (true, tsi.HideSelection, "A9"); Assert.AreEqual ("System.String[]", tsi.Lines.GetType ().ToString (), "A10"); Assert.AreEqual (32767, tsi.MaxLength, "A11"); //Bug in TextBox //Assert.AreEqual (false, tsi.Modified, "A12"); Assert.AreEqual (false, tsi.ReadOnly, "A13"); Assert.AreEqual (string.Empty, tsi.SelectedText, "A14"); Assert.AreEqual (0, tsi.SelectionLength, "A15"); Assert.AreEqual (0, tsi.SelectionStart, "A16"); Assert.AreEqual (true, tsi.ShortcutsEnabled, "A17"); Assert.AreEqual ("System.Windows.Forms.ToolStripTextBox+ToolStripTextBoxControl", tsi.TextBox.GetType ().ToString (), "A18"); Assert.AreEqual (HorizontalAlignment.Left, tsi.TextBoxTextAlign, "A19"); Assert.AreEqual (0, tsi.TextLength, "A20"); tsi = new ToolStripTextBox ("Bob"); Assert.AreEqual ("Bob", tsi.Name, "A21"); Assert.AreEqual (string.Empty, tsi.Control.Name, "A22"); }
public ParallaxToolStrip(SerialParallax osc, GraphControl gc) { oscillo = osc; graphControl = gc; // // toolStrip2 // this.toolStrip = new System.Windows.Forms.ToolStrip(); this.toolStrip.Dock = System.Windows.Forms.DockStyle.None; this.toolStrip.Location = new System.Drawing.Point(3, 0); this.toolStrip.Name = "toolStrip2"; this.toolStrip.Size = new System.Drawing.Size(243, 25); this.toolStrip.TabIndex = 1; this.toolStrip.Text = "toolStrip2"; this.triggerLabel = new System.Windows.Forms.ToolStripLabel(); this.trigger = new System.Windows.Forms.ToolStripTextBox(); this.toolStripLabel2 = new System.Windows.Forms.ToolStripLabel(); this.triggerMode = new System.Windows.Forms.ToolStripComboBox(); // // triggerLabel // this.triggerLabel.Name = "triggerLabel"; this.triggerLabel.Size = new System.Drawing.Size(42, 22); this.triggerLabel.Text = "trigger"; this.toolStrip.Items.Add(this.triggerLabel); // // trigger // this.trigger.Name = "trigger"; this.trigger.Size = new System.Drawing.Size(50, 25); this.trigger.Text = "0"; this.trigger.Validating += new System.ComponentModel.CancelEventHandler(this.trigger_Validating); this.trigger.Validated += new System.EventHandler(this.trigger_Validated); this.toolStrip.Items.Add(this.trigger); // // triggerMode // this.triggerMode.Items.AddRange(new object[] { "ch1 ˄", "ch1 ˅", "ch2 ˄", "ch2 ˅", "ext ˄" }); this.triggerMode.Name = "triggerMode"; this.triggerMode.Size = new System.Drawing.Size(20, 25); this.triggerMode.SelectedIndexChanged += new System.EventHandler(this.triggerMode_SelectedIndexChanged); triggerMode.SelectedIndex = 0; this.toolStrip.Items.Add(this.triggerMode); //channels.SelectedIndex = 0; trigger.Text = "0"; triggerMode.SelectedIndex = 0; oscillo.TriggerVoltage = (float.Parse(trigger.Text)); }
public static void Bind(ToolStripMenuItem parent, string path) { foreach (ExtensionNode node in AddinManager.GetExtensionObjects("/EcIDE/Menu/" + path)) { var cmds = node.GetCommand(); foreach (var ec in cmds) { var eps = ec as separator; if (eps != null) { parent.DropDownItems.Add(new ToolStripSeparator()); } var ep = ec as menuitem; if (ep != null) { var target = node.CreateInstances<IMenu>()[0]; target.Init(new ServiceContainer()); var it = new ToolStripMenuItem( ep.text, null, (sender, args) => target.GetType().GetMethod(ep.click).Invoke(target, new[] { sender, args })); try { it.Enabled = bool.Parse(ep.enabled); } catch { } parent.DropDownItems.Add(it); } var eptb = ec as textbox; if (eptb != null) { var target = node.CreateInstances<IMenu>()[0]; target.Init(new ServiceContainer()); var tb = new ToolStripTextBox(); tb.TextChanged += (sender, args) => target.GetType().GetMethod(eptb.textchanged).Invoke(target, new[] { sender, args }); try { tb.Visible = bool.Parse(eptb.visible); } catch { } parent.DropDownItems.Add(tb); } } } }
public ParallaxToolStrip(SerialParallax osc, GraphControl gc) { oscillo = osc; graphControl = gc; // // toolStrip2 // this.toolStrip = new System.Windows.Forms.ToolStrip(); this.toolStrip.Dock = System.Windows.Forms.DockStyle.None; this.toolStrip.Location = new System.Drawing.Point(3, 0); this.toolStrip.Name = "toolStrip2"; this.toolStrip.Size = new System.Drawing.Size(243, 25); this.toolStrip.TabIndex = 1; this.toolStrip.Text = "toolStrip2"; this.triggerLabel = new System.Windows.Forms.ToolStripLabel(); this.trigger = new System.Windows.Forms.ToolStripTextBox(); this.toolStripLabel2 = new System.Windows.Forms.ToolStripLabel(); this.triggerMode = new System.Windows.Forms.ToolStripComboBox(); // // triggerLabel // this.triggerLabel.Name = "triggerLabel"; this.triggerLabel.Size = new System.Drawing.Size(42, 22); this.triggerLabel.Text = "trigger"; this.toolStrip.Items.Add(this.triggerLabel); // // trigger // this.trigger.Name = "trigger"; this.trigger.Size = new System.Drawing.Size(50, 25); this.trigger.Text = "0"; this.trigger.Validating += new System.ComponentModel.CancelEventHandler(this.trigger_Validating); this.trigger.Validated += new System.EventHandler(this.trigger_Validated); this.toolStrip.Items.Add(this.trigger); // // triggerMode // this.triggerMode.Items.AddRange(new object[] { "ch1 ˄", "ch1 ˅", "ch2 ˄", "ch2 ˅", "ext ˄"}); this.triggerMode.Name = "triggerMode"; this.triggerMode.Size = new System.Drawing.Size(20, 25); this.triggerMode.SelectedIndexChanged += new System.EventHandler(this.triggerMode_SelectedIndexChanged); triggerMode.SelectedIndex = 0; this.toolStrip.Items.Add(this.triggerMode); //channels.SelectedIndex = 0; trigger.Text = "0"; triggerMode.SelectedIndex = 0; oscillo.TriggerVoltage = (float.Parse(trigger.Text)); }
//�ΡΡΡΡΡΡΡΡΡΡΡΡΡΡΡΡΡΡΡΡΡΡΡΡΡΡΡΡΡΡΡΡΡΡι��߳�ʼ���� public void initTool(ShoulderToolBar obTool, ToolStripTextBox obText, ToolStripButton obButton, string stPath) { obTool.Parent = m_obParent; obTool.Dock = DockStyle.Top; obTool.AddItem(obText, true); obTool.Items.Add(obButton); obText.Text = stPath; }
private void AddSearch() { this.toolStrip1.Items.Add("姓名"); txt = new System.Windows.Forms.ToolStripTextBox(); txt.KeyDown += new KeyEventHandler(txt_KeyDown); txt.ToolTipText = "输入姓名按回车查询"; this.toolStrip1.Items.Add(txt); }
private void AddSearch() { this.toolStrip1.Items.Add("ѧԱ����"); ToolStripTextBox txt = new System.Windows.Forms.ToolStripTextBox(); txt.KeyDown += new KeyEventHandler(txt_KeyDown); txt.ToolTipText = "�����������س���ѯ"; this.toolStrip1.Items.Add(txt); }
public TagMenu() { base.Text = Resources.TagsMenuHeader; customTag = new ToolStripTextBox(); customTag.KeyUp += CustomTagKeyUp; DropDownOpening += OnDropDownOpening; }
//�ΡΡΡΡΡΡΡΡΡΡΡΡΡΡΡΡΡΡΡΡΡΡΡΡΡΡΡΡΡΡΡΡΡΡι��߳�ʼ���� protected void InitToolBar(ShoulderToolBar obBar, ToolStripTextBox obText, ToolStripButton obButton, string text) { obBar.Parent = this; obText.Text = text; obBar.Dock = DockStyle.Top; obBar.AddItem(obText, true); obBar.Items.Add(obButton); }
private void AddSearch() { this.toolStrip1.Items.Add("学员姓名"); ToolStripTextBox txt = new System.Windows.Forms.ToolStripTextBox(); txt.KeyDown += new KeyEventHandler(txt_KeyDown); txt.ToolTipText = "输入姓名按回车查询"; this.toolStrip1.Items.Add(txt); }
private void AddSearch() { this.toolStrip1.Items.Add("ºÅÂëºÅÅÆ"); ToolStripTextBox txt = new System.Windows.Forms.ToolStripTextBox(); txt.KeyDown += new KeyEventHandler(txt_KeyDown); txt.ToolTipText = "ÊäÈëºÅÂëºÅÅÆ°´»Ø³µ²éѯ"; this.toolStrip1.Items.Add(txt); }
public void LoadMenu(ToolStripMenuItem item) { // Add option to change chart size var container = new ToolStripMenuItem("Chart size"); item.DropDownItems.Add(container); var txtChartSize = new ToolStripTextBox("txtChartSize"); txtChartSize.Text = "Chart size"; txtChartSize.TextBox.Text = mChartSize.ToString(); txtChartSize.TextChanged += new EventHandler(txtChartSize_TextChanged); container.DropDownItems.Add(txtChartSize); }
private void InitializeComponent() { ComponentResourceManager manager = new ComponentResourceManager(typeof(PropertyVersionFilterControl)); this.tsTop = new ToolStrip(); this.tslField = new ToolStripLabel(); this.tslPropertyName = new ToolStripLabel(); this.tslIs = new ToolStripLabel(); this.tsddValueOperation = new ToolStripDropDownButton(); this.tsmiOperationEquals = new ToolStripMenuItem(); this.tsmiOperationNotEquals = new ToolStripMenuItem(); this.tsmiOperationSmaller = new ToolStripMenuItem(); this.tsmiOperationLarger = new ToolStripMenuItem(); this.tstbValue = new ToolStripTextBox(); this.tsTop.SuspendLayout(); base.SuspendLayout(); this.tsTop.BackColor = Color.Transparent; manager.ApplyResources(this.tsTop, "tsTop"); this.tsTop.GripStyle = ToolStripGripStyle.Hidden; this.tsTop.Items.AddRange(new ToolStripItem[] { this.tslField, this.tslPropertyName, this.tslIs, this.tsddValueOperation, this.tstbValue }); this.tsTop.Name = "tsTop"; this.tslField.Name = "tslField"; manager.ApplyResources(this.tslField, "tslField"); this.tslPropertyName.Name = "tslPropertyName"; manager.ApplyResources(this.tslPropertyName, "tslPropertyName"); this.tslIs.Name = "tslIs"; manager.ApplyResources(this.tslIs, "tslIs"); this.tsddValueOperation.DisplayStyle = ToolStripItemDisplayStyle.Text; this.tsddValueOperation.DropDownItems.AddRange(new ToolStripItem[] { this.tsmiOperationEquals, this.tsmiOperationNotEquals, this.tsmiOperationSmaller, this.tsmiOperationLarger }); this.tsddValueOperation.Name = "tsddValueOperation"; manager.ApplyResources(this.tsddValueOperation, "tsddValueOperation"); this.tsmiOperationEquals.Name = "tsmiOperationEquals"; manager.ApplyResources(this.tsmiOperationEquals, "tsmiOperationEquals"); this.tsmiOperationEquals.Click += new EventHandler(this.tsmiOperationEquals_Click); this.tsmiOperationNotEquals.Name = "tsmiOperationNotEquals"; manager.ApplyResources(this.tsmiOperationNotEquals, "tsmiOperationNotEquals"); this.tsmiOperationNotEquals.Click += new EventHandler(this.tsmiOperationEquals_Click); this.tsmiOperationSmaller.Name = "tsmiOperationSmaller"; manager.ApplyResources(this.tsmiOperationSmaller, "tsmiOperationSmaller"); this.tsmiOperationSmaller.Click += new EventHandler(this.tsmiOperationEquals_Click); this.tsmiOperationLarger.Name = "tsmiOperationLarger"; manager.ApplyResources(this.tsmiOperationLarger, "tsmiOperationLarger"); this.tsmiOperationLarger.Click += new EventHandler(this.tsmiOperationEquals_Click); this.tstbValue.BorderStyle = BorderStyle.FixedSingle; manager.ApplyResources(this.tstbValue, "tstbValue"); this.tstbValue.Name = "tstbValue"; this.tstbValue.TextChanged += new EventHandler(this.tstbValue_TextChanged); manager.ApplyResources(this, "$this"); base.AutoScaleMode = AutoScaleMode.Font; base.Controls.Add(this.tsTop); base.Name = "PropertyVersionFilterControl"; this.tsTop.ResumeLayout(false); this.tsTop.PerformLayout(); base.ResumeLayout(false); base.PerformLayout(); }
public ToolStripItem[] GetContextMenuItems(Lib.Control Control) { var getCommandMenuItem = new ToolStripMenuItem("Get Command"); var getCommandTextBox = new ToolStripTextBox("Get Command Text Box"); getCommandMenuItem.DropDownItems.Add(getCommandTextBox); getCommandTextBox.TextChanged += new EventHandler(GetCommandToolStripTextBox_TextChanged); getCommandTextBox.Tag = Control; return new ToolStripItem[] { getCommandMenuItem }; }
private void UpdateUIToolStripTextBox(System.Windows.Forms.ToolStripTextBox ctl, Boolean value) { if (this.InvokeRequired) { UpdateUIToolStripTextBoxCallBack uu = new UpdateUIToolStripTextBoxCallBack(UpdateUIToolStripTextBox); this.Invoke(uu, ctl, value); } else { ctl.Enabled = value; } }
private void BuildOwnToolStripMenu() { ToolStripLabel tslSearch = new ToolStripLabel("Suche:"); this.toolStripMain.Items.Add(tslSearch); ToolStripTextBox tstbSearch = new ToolStripTextBox("tstbSearch"); tstbSearch.Text = "Suchbegriff"; tstbSearch.ForeColor = Color.Gray; tstbSearch.KeyDown += new KeyEventHandler(tstbSearch_KeyDown); tstbSearch.GotFocus += new EventHandler(tstbSearch_GotFocus); tstbSearch.LostFocus += new EventHandler(tstbSearch_LostFocus); this.toolStripMain.Items.Add(tstbSearch); }
private void AddSearch() { this.toolStrip1.Items.Add("����"); txt1 = new System.Windows.Forms.ToolStripTextBox(); txt1.KeyDown += new KeyEventHandler(txt1_KeyDown); txt1.ToolTipText = "���복�ΰ��س���ѯ"; this.toolStrip1.Items.Add(txt1); this.toolStrip1.Items.Add("վ��"); txt2 = new System.Windows.Forms.ToolStripTextBox(); txt2.KeyDown += new KeyEventHandler(txt2_KeyDown); txt2.ToolTipText = "����վ�����س���ѯ"; this.toolStrip1.Items.Add(txt2); }
public static ToolStripItem addTextBox(object control, String controlName, string defaultValue, KeyEventHandler onKeyUp) { var toolStrip = getToolStripControl(control); if (toolStrip != null) { return (ToolStripItem)toolStrip.invokeOnThread( () => { var newTextBox = new ToolStripTextBox(controlName) { Text = defaultValue }; toolStrip.Items.Add(newTextBox); if (onKeyUp != null) newTextBox.KeyUp += onKeyUp; return newTextBox; }); } return null; }
private void InitializeComponent() { ComponentResourceManager manager = new ComponentResourceManager(typeof(NameFilterControl)); this.tsName = new ToolStrip(); this.tslName = new ToolStripLabel(); this.tsddNameCondition = new ToolStripDropDownButton(); this.tsmiConditionEqual = new ToolStripMenuItem(); this.tsmiConditionNotEqual = new ToolStripMenuItem(); this.tslMask = new ToolStripLabel(); this.tstbMask = new ToolStripTextBox(); this.tsName.SuspendLayout(); base.SuspendLayout(); this.tsName.BackColor = Color.Transparent; manager.ApplyResources(this.tsName, "tsName"); this.tsName.GripStyle = ToolStripGripStyle.Hidden; this.tsName.Items.AddRange(new ToolStripItem[] { this.tslName, this.tsddNameCondition, this.tslMask, this.tstbMask }); this.tsName.Name = "tsName"; this.tslName.Name = "tslName"; manager.ApplyResources(this.tslName, "tslName"); this.tsddNameCondition.DisplayStyle = ToolStripItemDisplayStyle.Text; this.tsddNameCondition.DropDownItems.AddRange(new ToolStripItem[] { this.tsmiConditionEqual, this.tsmiConditionNotEqual }); manager.ApplyResources(this.tsddNameCondition, "tsddNameCondition"); this.tsddNameCondition.Name = "tsddNameCondition"; this.tsmiConditionEqual.Name = "tsmiConditionEqual"; manager.ApplyResources(this.tsmiConditionEqual, "tsmiConditionEqual"); this.tsmiConditionEqual.Click += new EventHandler(this.tsmiConditionEqual_Click); this.tsmiConditionNotEqual.Name = "tsmiConditionNotEqual"; manager.ApplyResources(this.tsmiConditionNotEqual, "tsmiConditionNotEqual"); this.tsmiConditionNotEqual.Click += new EventHandler(this.tsmiConditionEqual_Click); this.tslMask.Name = "tslMask"; manager.ApplyResources(this.tslMask, "tslMask"); this.tstbMask.BorderStyle = BorderStyle.FixedSingle; manager.ApplyResources(this.tstbMask, "tstbMask"); this.tstbMask.Name = "tstbMask"; this.tstbMask.TextChanged += new EventHandler(this.tstbMask_TextChanged); manager.ApplyResources(this, "$this"); base.AutoScaleMode = AutoScaleMode.Font; base.Controls.Add(this.tsName); base.Name = "NameFilterControl"; this.tsName.ResumeLayout(false); this.tsName.PerformLayout(); base.ResumeLayout(false); base.PerformLayout(); }
public FilterRevisionsHelper(ToolStripTextBox toolStripTextBoxFilter, ToolStripDropDownButton toolStripDropDownButton1, RevisionGrid RevisionGrid, ToolStripLabel toolStripLabel2, Form form) : this() { this._NO_TRANSLATE_toolStripDropDownButton1 = toolStripDropDownButton1; this._NO_TRANSLATE_toolStripTextBoxFilter = toolStripTextBoxFilter; this._NO_TRANSLATE_RevisionGrid = RevisionGrid; this._NO_TRANSLATE_toolStripLabel2 = toolStripLabel2; this._NO_TRANSLATE_form = form; this._NO_TRANSLATE_toolStripDropDownButton1.DropDownItems.AddRange(new ToolStripItem[] { this.commitToolStripMenuItem1, this.committerToolStripMenuItem, this.authorToolStripMenuItem, this.diffContainsToolStripMenuItem}); this._NO_TRANSLATE_toolStripLabel2.Click += this.ToolStripLabel2Click; this._NO_TRANSLATE_toolStripTextBoxFilter.Leave += this.ToolStripTextBoxFilterLeave; this._NO_TRANSLATE_toolStripTextBoxFilter.KeyPress += this.ToolStripTextBoxFilterKeyPress; }
private void AddSearch() { this.toolStrip1.Items.Add("��ӡ״̬"); cb = new ToolStripComboBox(); cb.DropDownStyle = ComboBoxStyle.DropDownList; //cb.SelectedIndexChanged += new EventHandler(cb_SelectedIndexChanged); cb.ToolTipText = "ѡ���ѯ�Ĵ�ӡ״̬"; cb.Items.Add("��ѡ��"); cb.Items.Add("δ��ӡ"); cb.Items.Add("�Ѵ�ӡ"); cb.SelectedIndex = 0; this.toolStrip1.Items.Add(cb); this.toolStrip1.Items.Add("����"); txt= new System.Windows.Forms.ToolStripTextBox(); txt.KeyDown += new KeyEventHandler(txt_KeyDown); txt.ToolTipText = "�����������س���ѯ"; this.toolStrip1.Items.Add(txt); }
private void InitializeComponent() { SuspendLayout(); _btnNewModel = new ToolStripButton(); _btnNewModel.ToolTipText = MessageStrings.NewModel; _btnNewModel.Image = Images.NewModel.ToBitmap(); _btnNewModel.Click += BtnNewModelClick; Items.Add(_btnNewModel); _txtBoxSearch = new ToolStripTextBox(); _txtBoxSearch.Text = MessageStrings.FindToolByName; _txtBoxSearch.TextChanged += TxtBoxSearchTextChanged; _txtBoxSearch.Leave += TxtBoxSearchLeave; _txtBoxSearch.Enter += TxtBoxSearchEnter; _txtBoxSearch.KeyPress += TxtBoxSearchKeyPress; Items.Add(_txtBoxSearch); ResumeLayout(); }
private void InitializeComponent() { this.SuspendLayout(); _btnNewModel = new ToolStripButton(); _btnNewModel.ToolTipText = MessageStrings.NewModel; _btnNewModel.Image = Images.NewModel.ToBitmap(); _btnNewModel.Click += new EventHandler(_btnNewModel_Click); this.Items.Add(_btnNewModel); _txtBoxSearch = new ToolStripTextBox(); _txtBoxSearch.Text = MapWindow.MessageStrings.FindToolByName; _txtBoxSearch.TextChanged +=new EventHandler(txtBoxSearch_TextChanged); _txtBoxSearch.Leave += new EventHandler(_txtBoxSearch_Leave); _txtBoxSearch.Enter += new EventHandler(_txtBoxSearch_Enter); _txtBoxSearch.KeyPress += new KeyPressEventHandler(_txtBoxSearch_KeyPress); this.Items.Add(_txtBoxSearch); this.ResumeLayout(); }
public ToolStripItem[] GetContextMenuItems(OpenLab.Lib.Control Control) { var onCommandMenuItem = new ToolStripMenuItem("On Command"); var onCommandTextBox = new ToolStripTextBox("On Command Text Box"); var offCommandMenuItem = new ToolStripMenuItem("Off Command"); var offCommandTextBox = new ToolStripTextBox("Off Command Text Box"); onCommandMenuItem.DropDownItems.Add(onCommandTextBox); onCommandTextBox.TextChanged += new EventHandler(OnCommandTextBox_TextChanged); onCommandTextBox.Tag = Control; offCommandMenuItem.DropDownItems.Add(offCommandTextBox); offCommandTextBox.TextChanged += new EventHandler(OffCommandTextBox_TextChanged); offCommandTextBox.Tag = Control; return new ToolStripItem[] { onCommandMenuItem, offCommandMenuItem }; }
public ToolStripItem[] GetContextMenuItems(Lib.Control Control) { var minimumMenuItem = new ToolStripMenuItem("Minimum"); var minimumTextBox = new ToolStripTextBox("Minimum Text Box"); var maximumMenuItem = new ToolStripMenuItem("Maximum"); var maximumTextBox = new ToolStripTextBox("Maximum Text Box"); var incrementMenuItem = new ToolStripMenuItem("Increment"); var incrementTextBox = new ToolStripTextBox("Increment Text Box"); var decimalPlacesMenuItem = new ToolStripMenuItem("Decimal Places"); var decimalPlacesTextBox = new ToolStripTextBox("Decimal Places Text Box"); var setCommandMenuItem = new ToolStripMenuItem("Set Command"); var setCommandTextBox = new ToolStripTextBox("Set Command Text Box"); minimumMenuItem.DropDownItems.Add(minimumTextBox); minimumTextBox.TextChanged += new EventHandler(MinimumTextBox_TextChanged); minimumTextBox.Tag = Control; maximumMenuItem.DropDownItems.Add(maximumTextBox); maximumTextBox.TextChanged += new EventHandler(MaximumTextBox_TextChanged); maximumTextBox.Tag = Control; incrementMenuItem.DropDownItems.Add(incrementTextBox); incrementTextBox.TextChanged += new EventHandler(IncrementTextBox_TextChanged); incrementTextBox.Tag = Control; decimalPlacesMenuItem.DropDownItems.Add(decimalPlacesTextBox); decimalPlacesTextBox.TextChanged += new EventHandler(DecimalPlacesTextBox_TextChanged); decimalPlacesTextBox.Tag = Control; setCommandMenuItem.DropDownItems.Add(setCommandTextBox); setCommandTextBox.TextChanged += new EventHandler(SetCommandTextBox_TextChanged); setCommandTextBox.Tag = Control; return new ToolStripItem[] { minimumMenuItem, maximumMenuItem, incrementMenuItem, decimalPlacesMenuItem, setCommandMenuItem }; }
/// <summary> /// Creates a new instance of <see cref="ListViewComboBox"/>. /// </summary> public ListViewComboBox() { ListView innerListView = new ListView(); innerListView.Columns.Add("Productos"); innerListView.HeaderStyle = ColumnHeaderStyle.None; // Hide column headers innerListView.BorderStyle = BorderStyle.None; innerListView.View = View.Details; // 1 item per line innerListView.MultiSelect = false; innerListView.FullRowSelect = true; innerListView.HideSelection = false; innerListView.ShowGroups = true; innerListView.ShowItemToolTips = false; innerListView.DoubleClick += new System.EventHandler(ListView_DoubleClick); innerListView.ItemMouseHover += new ListViewItemMouseHoverEventHandler(ListView_ItemMouseHover); // Default height for now DropDownHeight = 300; _controlHost = new ToolStripControlHost(innerListView); _controlHost.AutoSize = false; _toolTip = new ToolTip(); _searchBox = new ToolStripTextBox(); _searchBox.BorderStyle = BorderStyle.FixedSingle; _searchBox.Dock = DockStyle.Fill; _searchBox.Text = "Search"; _searchBox.Width = Width; _searchBox.TextChanged += new EventHandler(SearchBox_TextChanged); _searchBox.LostFocus += new EventHandler(SearchBox_LostFocus); _searchBox.GotFocus += new EventHandler(SearchBox_GotFocus); _dropDown = new ToolStripDropDown(); _dropDown.DropShadowEnabled = false; _dropDown.Items.Add(_searchBox); _dropDown.Items.Add(_controlHost); }
public static void FilterBindingSource(BindingSource bs, ToolStripComboBox tscb, ToolStripTextBox tstb) { if (tscb.SelectedIndex != -1) { if (tstb.Text != "") try { bs.Filter = String.Format("{0} like '*{1}*'", FunctionsClass.GetKeyByValue(tscb.SelectedItem.ToString()), tstb.Text); } catch (Exception e) { try { bs.Filter = String.Format("{0} = {1}", FunctionsClass.GetKeyByValue(tscb.SelectedItem.ToString()), tstb.Text); } catch (Exception ex) { bs.Filter = String.Format("Convert({0},'System.String') like '*{1}*'", FunctionsClass.GetKeyByValue(tscb.SelectedItem.ToString()), tstb.Text); } } else bs.Filter = ""; } }
public GoToLineControl(CodeEditor editor) { Parent = editor; RenderMode = ToolStripRenderMode.System; GripStyle = ToolStripGripStyle.Hidden; BackColor = SystemColors.Control; ForeColor = SystemColors.ControlText; Padding = new Padding(5, 5, 0, 5); Cursor = Cursors.Arrow; LabelText = "Go to line:"; EditorCaretPeriodCache = Parent.CaretPeriod; EditorReadOnlyCache = Parent.ReadOnly; Parent.CaretPeriod = 0; Items.Add(new ToolStripLabel(LabelText)); Items.Add(TextBox = new ToolStripTextBox()); Items.Add(CloseButton = new ToolStripButton(Properties.Resources.CloseInactive)); CloseButton.Click += CloseButton_Click; CloseButton.MouseEnter += CloseButton_MouseEnter; CloseButton.MouseLeave += CloseButton_MouseLeave; Parent.Controls.Add(this); Anchor = AnchorStyles.Right; Left = Parent.ClientSize.Width - Width; TextBox.Focus(); }
public FilterRevisionsHelper(ToolStripTextBox textBox, ToolStripDropDownButton dropDownButton, RevisionGrid revisionGrid, ToolStripLabel label, ToolStripButton showFirstParentButton, Form form) : this() { this._NO_TRANSLATE_dropDownButton = dropDownButton; this._NO_TRANSLATE_textBox = textBox; this._NO_TRANSLATE_revisionGrid = revisionGrid; this._NO_TRANSLATE_label = label; this._NO_TRANSLATE_showFirstParentButton = showFirstParentButton; this._NO_TRANSLATE_form = form; this._NO_TRANSLATE_dropDownButton.DropDownItems.AddRange(new ToolStripItem[] { this.commitToolStripMenuItem, this.committerToolStripMenuItem, this.authorToolStripMenuItem, this.diffContainsToolStripMenuItem}); this._NO_TRANSLATE_showFirstParentButton.Checked = AppSettings.ShowFirstParent; this._NO_TRANSLATE_label.Click += this.ToolStripLabelClick; this._NO_TRANSLATE_textBox.Leave += this.ToolStripTextBoxFilterLeave; this._NO_TRANSLATE_textBox.KeyPress += this.ToolStripTextBoxFilterKeyPress; this._NO_TRANSLATE_showFirstParentButton.Click += this.ToolStripShowFirstParentButtonClick; this._NO_TRANSLATE_revisionGrid.ShowFirstParentsToggled += this.RevisionGridShowFirstParentsToggled; }
private void gui () { this.StartPosition = FormStartPosition.CenterScreen; this.Size = new Size (650, 650); menu = new MenuStrip (); menu.Items.Add ("Dom Inspector", null, new EventHandler (openInspector)); menu.Items.Add ("Event Monitor", null, new EventHandler (openEventMonitor)); ToolStripMenuItem menu1 = null; ToolStripMenuItem menu2 = null; ToolStripMenuItem menu3 = null; ToolStripTextBox menutxt = null; menu1 = new ToolStripMenuItem ("Browser"); menu.Items.Add (menu1); menu2 = new ToolStripMenuItem ("Render data", null, delegate { // webHost.OpenStream ("file:///", "text/html"); // webHost.AppendToStream (body.Text); // webHost.CloseStream (); }); menu1.DropDownItems.Add (menu2); menu2 = new ToolStripMenuItem ("Scrollbars"); menu1.DropDownItems.Add (menu2); menu3 = new ToolStripMenuItem ("Enable", null, delegate { helper.setScrollbars (true); }); menu2.DropDownItems.Add (menu3); menu3 = new ToolStripMenuItem ("Disable", null, delegate { helper.setScrollbars (false); }); menu2.DropDownItems.Add (menu3); menu3 = new ToolStripMenuItem ("Get Value", null, delegate { helper.getScrollbars (); }); menu2.DropDownItems.Add (menu3); menu2 = new ToolStripMenuItem ("RTL"); menu1.DropDownItems.Add (menu2); menu3 = new ToolStripMenuItem ("Enable", null, delegate { helper.RightToLeft = true; }); menu2.DropDownItems.Add (menu3); menu3 = new ToolStripMenuItem ("Disable", null, delegate { helper.RightToLeft = false; }); menu2.DropDownItems.Add (menu3); menu3 = new ToolStripMenuItem ("Get Value", null, delegate { bool a = helper.RightToLeft; }); menu2.DropDownItems.Add (menu3); menu2 = new ToolStripMenuItem ("Windows", null, delegate { helper.getWindows (); }); menu1.DropDownItems.Add (menu2); /*** Document ***/ menu1 = new ToolStripMenuItem ("Document"); menu.Items.Add (menu1); menu2 = new ToolStripMenuItem ("Title"); menu1.DropDownItems.Add (menu2); menutxt = new ToolStripTextBox (); menu2.DropDownItems.Add (menutxt); menu3 = new ToolStripMenuItem ("Get", null, delegate{ helper.getTitle (); }); menu2.DropDownItems.Add (menu3); menu3 = new ToolStripMenuItem ("Set", null, delegate(object sender, EventArgs e) { helper.setTitle (((ToolStripTextBox)((ToolStripMenuItem)((ToolStripMenuItem)sender).OwnerItem).DropDownItems[0]).Text); }); menu2.DropDownItems.Add (menu3); menu2 = new ToolStripMenuItem ("Get DocumentElement", null, delegate { helper.getDocumentElement (); }); menu1.DropDownItems.Add (menu2); menu2 = new ToolStripMenuItem ("Get Body", null, delegate { helper.getBody (); }); menu1.DropDownItems.Add (menu2); menu2 = new ToolStripMenuItem ("Get Active Element", null, delegate { helper.getActiveElement (); }); menu1.DropDownItems.Add (menu2); menu2 = new ToolStripMenuItem ("Get Element"); menu1.DropDownItems.Add (menu2); menutxt = new ToolStripTextBox (); menu2.DropDownItems.Add (menutxt); menu3 = new ToolStripMenuItem ("By ID", null, delegate (object sender, EventArgs e) { helper.getElementById (((ToolStripTextBox)((ToolStripMenuItem)((ToolStripMenuItem)sender).OwnerItem).DropDownItems[0]).Text); }); menu2.DropDownItems.Add (menu3); menu3 = new ToolStripMenuItem ("By Location", null, delegate (object sender, EventArgs e) { string s = ((ToolStripTextBox)((ToolStripMenuItem)((ToolStripMenuItem)sender).OwnerItem).DropDownItems[0]).Text; string[] point = s.Split (','); if (point.Length != 2) return; int x, y; if (!(int.TryParse(point[0], out x))) return; if (!(int.TryParse(point[1], out y))) return; helper.getElement (x, y); }); menu2.DropDownItems.Add (menu3); menu2 = new ToolStripMenuItem ("Encoding"); menu1.DropDownItems.Add (menu2); menutxt = new ToolStripTextBox (); menu2.DropDownItems.Add (menutxt); menu3 = new ToolStripMenuItem ("Get", null, delegate { helper.getCharset (); }); menu2.DropDownItems.Add (menu3); menu3 = new ToolStripMenuItem ("Set", null, delegate(object sender, EventArgs e) { helper.setCharset (((ToolStripTextBox)((ToolStripMenuItem)((ToolStripMenuItem)sender).OwnerItem).DropDownItems[0]).Text); }); menu2.DropDownItems.Add (menu3); menu2 = new ToolStripMenuItem ("Cookie"); menu1.DropDownItems.Add (menu2); menutxt = new ToolStripTextBox (); menu2.DropDownItems.Add (menutxt); menu3 = new ToolStripMenuItem ("Get", null, delegate { helper.getCookie (); }); menu2.DropDownItems.Add (menu3); menu3 = new ToolStripMenuItem ("Set", null, delegate(object sender, EventArgs e) { helper.setCookie (((ToolStripTextBox)((ToolStripMenuItem)((ToolStripMenuItem)sender).OwnerItem).DropDownItems[0]).Text); }); menu2.DropDownItems.Add (menu3); menu2 = new ToolStripMenuItem ("Attributes", null, delegate { helper.getAttributes (); }); menu1.DropDownItems.Add (menu2); menu2 = new ToolStripMenuItem ("Anchors", null, delegate { helper.getAnchors (); }); menu1.DropDownItems.Add (menu2); menu2 = new ToolStripMenuItem ("Applets", null, delegate { helper.getApplets (); }); menu1.DropDownItems.Add (menu2); menu2 = new ToolStripMenuItem ("Forms", null, delegate { helper.getForms (); }); menu1.DropDownItems.Add (menu2); menu2 = new ToolStripMenuItem ("Images", null, delegate { helper.getImages (); }); menu1.DropDownItems.Add (menu2); menu2 = new ToolStripMenuItem ("Links", null, delegate { helper.getLinks (); }); menu1.DropDownItems.Add (menu2); menu2 = new ToolStripMenuItem ("Stylesheets", null, delegate { helper.getStylesheets (); }); menu1.DropDownItems.Add (menu2); menu2 = new ToolStripMenuItem ("Url", null, delegate { helper.getUrl (); }); menu1.DropDownItems.Add (menu2); menu2 = new ToolStripMenuItem ("Script"); menu1.DropDownItems.Add (menu2); menutxt = new ToolStripTextBox (); menu2.DropDownItems.Add (menutxt); menu3 = new ToolStripMenuItem ("Invoke", null, delegate(object sender, EventArgs e) { body.AppendText (helper.invokeScript (((ToolStripTextBox) ((ToolStripMenuItem) ((ToolStripMenuItem) sender).OwnerItem).DropDownItems[0]).Text)); }); menu2.DropDownItems.Add (menu3); /***** Element *********/ menu1 = new ToolStripMenuItem ("Element"); menu.Items.Add (menu1); menu2 = new ToolStripMenuItem ("Attribute"); menu1.DropDownItems.Add (menu2); menutxt = new ToolStripTextBox (); menu2.DropDownItems.Add (menutxt); menu3 = new ToolStripMenuItem ("Has", null, delegate(object sender, EventArgs e) { helper.hasAttribute (((ToolStripTextBox)((ToolStripMenuItem)((ToolStripMenuItem)sender).OwnerItem).DropDownItems[0]).Text); }); menu2.DropDownItems.Add (menu3); menu3 = new ToolStripMenuItem ("Get", null, delegate(object sender, EventArgs e) { helper.getAttribute (((ToolStripTextBox)((ToolStripMenuItem)((ToolStripMenuItem)sender).OwnerItem).DropDownItems[0]).Text); }); menu2.DropDownItems.Add (menu3); menu3 = new ToolStripMenuItem ("Set", null, delegate(object sender, EventArgs e) { helper.setAttribute (((ToolStripTextBox)((ToolStripMenuItem)((ToolStripMenuItem)sender).OwnerItem).DropDownItems[0]).Text, ((ToolStripTextBox)((ToolStripMenuItem)((ToolStripMenuItem)sender).OwnerItem).DropDownItems[ ((ToolStripMenuItem)((ToolStripMenuItem)sender).OwnerItem).DropDownItems.Count - 1 ]).Text); }); menu2.DropDownItems.Add (menu3); menutxt = new ToolStripTextBox (); menu2.DropDownItems.Add (menutxt); menu2 = new ToolStripMenuItem ("Show Children", null, delegate { helper.getChildren (); }); menu1.DropDownItems.Add (menu2); menu2 = new ToolStripMenuItem ("FirstChild", null, delegate { helper.getFirstChild (); }); menu1.DropDownItems.Add (menu2); menu2 = new ToolStripMenuItem ("InnerHTML", null, delegate { helper.getInnerHTML (); }); menu1.DropDownItems.Add (menu2); menu2 = new ToolStripMenuItem ("InnerText", null, delegate { helper.getInnerText (); }); menu1.DropDownItems.Add (menu2); menu2 = new ToolStripMenuItem ("OuterHTML"); menu1.DropDownItems.Add (menu2); menu3 = new ToolStripMenuItem ("Get", null, delegate { helper.getOuterHTML (); }); menu2.DropDownItems.Add (menu3); menu3 = new ToolStripMenuItem ("Set", null, delegate { helper.setOuterHTML (body.Text); }); menu2.DropDownItems.Add (menu3); menu2 = new ToolStripMenuItem ("OuterText", null, delegate { helper.getOuterText (); }); menu1.DropDownItems.Add (menu2); menu2 = new ToolStripMenuItem ("LocalName", null, delegate { helper.getLocalName (); }); menu1.DropDownItems.Add (menu2); menu2 = new ToolStripMenuItem ("Value", null, delegate { helper.getValue (); }); menu1.DropDownItems.Add (menu2); menu2 = new ToolStripMenuItem ("Events"); menu1.DropDownItems.Add (menu2); menutxt = new ToolStripTextBox (); menu2.DropDownItems.Add (menutxt); menu3 = new ToolStripMenuItem ("Fire", null, delegate(object sender, EventArgs e) { helper.fireEvent (((ToolStripTextBox)((ToolStripMenuItem)((ToolStripMenuItem)sender).OwnerItem).DropDownItems[0]).Text); }); menu2.DropDownItems.Add (menu3); menu2 = new ToolStripMenuItem ("Tab Index"); menu1.DropDownItems.Add (menu2); menu3 = new ToolStripMenuItem ("Get", null, delegate { helper.getTabIndex (); }); menu2.DropDownItems.Add (menu3); menu3 = new ToolStripMenuItem ("Set", null, delegate { helper.setTabIndex (body.Text); }); menu2.DropDownItems.Add (menu3); menu2 = new ToolStripMenuItem ("Style"); menu1.DropDownItems.Add (menu2); menu3 = new ToolStripMenuItem ("Get", null, delegate { helper.getStyle (); }); menu2.DropDownItems.Add (menu3); menu3 = new ToolStripMenuItem ("Set", null, delegate { helper.setStyle (body.Text); }); menu2.DropDownItems.Add (menu3); this.Controls.Add (menu); int top = menu.Height; // first line cmdBack = new Button (); cmdBack.Text = "<"; cmdBack.Size = new Size (30, 30); cmdBack.Click += new EventHandler (this.back); cmdForward = new Button (); cmdForward.Text = ">"; cmdForward.Size = new Size (30, 30); cmdForward.Click += new EventHandler (this.forward); Button cmdGetOuterHtml = new Button (); cmdGetOuterHtml.Text = "<"; cmdGetOuterHtml.Size = new Size (30, 30); cmdGetOuterHtml.Click += delegate { this.helper.getOuterHTML(); }; Button cmdSetOuterHtml = new Button (); cmdSetOuterHtml.Text = "<"; cmdSetOuterHtml.Size = new Size (30, 30); cmdSetOuterHtml.Click += delegate { this.helper.setOuterHTML (this.body.Text); }; // second line lblBody = new Label (); lblBody.Text = "body"; lblBody.Width = 60; body = new TextBox (); body.Multiline = true; body.Width = this.Width - lblBody.Width; body.Height = body.Height * 2; body.Anchor = (AnchorStyles) (AnchorStyles.Top | AnchorStyles.Left | AnchorStyles.Right); // third line lblAddress = new Label (); lblAddress.Text = "address"; lblAddress.Width = 60; cmdNavigate = new Button (); cmdNavigate.Text = "Navigate"; cmdNavigate.Size = new Size (100, 30); cmdNavigate.Click += new EventHandler (this.navigate); address = new TextBox (); address.Width = this.Width - lblAddress.Width - cmdNavigate.Width; address.Anchor = (AnchorStyles) (AnchorStyles.Top | AnchorStyles.Left | AnchorStyles.Right | AnchorStyles.Right); // fourth line control = new Control (); control.Size = this.ClientSize; this.Size = new Size (this.Width, this.Height - 150); control.Anchor = (AnchorStyles) (AnchorStyles.Top | AnchorStyles.Left | AnchorStyles.Right| AnchorStyles.Bottom); control.GotFocus += delegate { Console.Error.WriteLine (" Control: GotFocus"); Console.Error.WriteLine (Environment.StackTrace); webHost.FocusIn (FocusOption.FocusFirstElement); }; control.LostFocus += delegate { Console.Error.WriteLine (" Control: LostFocus"); webHost.FocusOut (); }; control.VisibleChanged += delegate { Console.Error.WriteLine (" Control: VisibleChanged"); if (webHost != null && control.Visible && !control.Disposing && !control.IsDisposed && loaded) { webHost.Activate (); } else if (webHost != null && loaded && !control.Visible) { webHost.Deactivate (); } }; control.MouseClick += delegate (object sender, MouseEventArgs e) { Console.Error.WriteLine (" Control: MouseClick"); }; control.Resize += delegate { webHost.Resize (control.Width, control.Height); }; // bottom lblStatus = new Label (); lblStatus.Dock = DockStyle.Bottom; // positioning // first line cmdBack.Location = new Point (0, top); cmdForward.Location = new Point (cmdBack.Right, top); cmdGetOuterHtml.Location = new Point (cmdForward.Right, top); cmdSetOuterHtml.Location = new Point (cmdGetOuterHtml.Right, top); // second line top += 30; lblBody.Location = new Point (0, top); body.Location = new Point (lblBody.Right, top); // third line top += 60; lblAddress.Location = new Point (0, top); cmdNavigate.Location = new Point (lblAddress.Right, top); address.Location = new Point (cmdNavigate.Right, top); // fourth line top += 30; control.Location = new Point (0, top); // add this.Controls.Add (lblStatus); this.Controls.Add (control); this.Controls.Add (cmdNavigate); this.Controls.Add (address); this.Controls.Add (lblAddress); this.Controls.Add (cmdBack); this.Controls.Add (cmdForward); this.Controls.Add (cmdGetOuterHtml); this.Controls.Add (cmdSetOuterHtml); this.Controls.Add (body); this.Controls.Add (lblBody); domInspector = new DomInspector (helper, this); domInspector.Closing += delegate (object sender, CancelEventArgs e) { e.Cancel = true; ((Form)sender).Hide(); }; }
private void InitializeComponent() { System.Windows.Forms.ListViewGroup listViewGroup3 = new System.Windows.Forms.ListViewGroup("Predefined Properties", System.Windows.Forms.HorizontalAlignment.Left); System.Windows.Forms.ListViewGroup listViewGroup4 = new System.Windows.Forms.ListViewGroup("Custom Properties", System.Windows.Forms.HorizontalAlignment.Left); System.Windows.Forms.ListViewItem listViewItem3 = new System.Windows.Forms.ListViewItem(new string[] { "", "Location", "50,50"}, -1); System.Windows.Forms.ListViewItem listViewItem4 = new System.Windows.Forms.ListViewItem(new string[] { "", "Collision", "true"}, -1); System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(PropertyPane)); this.toolStripContainer1 = new System.Windows.Forms.ToolStripContainer(); this._propertyList = new Treefrog.Windows.Controls.WinEx.EditableListView(); this._colLabel = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader())); this._colName = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader())); this._colValue = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader())); this.toolStrip1 = new System.Windows.Forms.ToolStrip(); this._buttonAddProp = new System.Windows.Forms.ToolStripButton(); this._buttonRemoveProp = new System.Windows.Forms.ToolStripButton(); this.toolStripSeparator1 = new System.Windows.Forms.ToolStripSeparator(); this.toolStripTextBox1 = new System.Windows.Forms.ToolStripTextBox(); this.toolStripContainer1.ContentPanel.SuspendLayout(); this.toolStripContainer1.TopToolStripPanel.SuspendLayout(); this.toolStripContainer1.SuspendLayout(); this.toolStrip1.SuspendLayout(); this.SuspendLayout(); // // toolStripContainer1 // // // toolStripContainer1.ContentPanel // this.toolStripContainer1.ContentPanel.Controls.Add(this._propertyList); this.toolStripContainer1.ContentPanel.Margin = new System.Windows.Forms.Padding(0); this.toolStripContainer1.ContentPanel.Size = new System.Drawing.Size(239, 264); this.toolStripContainer1.Dock = System.Windows.Forms.DockStyle.Fill; this.toolStripContainer1.Location = new System.Drawing.Point(0, 0); this.toolStripContainer1.Margin = new System.Windows.Forms.Padding(0); this.toolStripContainer1.Name = "toolStripContainer1"; this.toolStripContainer1.Size = new System.Drawing.Size(239, 289); this.toolStripContainer1.TabIndex = 0; this.toolStripContainer1.Text = "toolStripContainer1"; // // toolStripContainer1.TopToolStripPanel // this.toolStripContainer1.TopToolStripPanel.Controls.Add(this.toolStrip1); // // _propertyList // this._propertyList.Columns.AddRange(new System.Windows.Forms.ColumnHeader[] { this._colLabel, this._colName, this._colValue}); this._propertyList.Dock = System.Windows.Forms.DockStyle.Fill; this._propertyList.DoubleClickActivation = true; this._propertyList.FullRowSelect = true; listViewGroup3.Header = "Predefined Properties"; listViewGroup3.Name = "_groupPredef"; listViewGroup4.Header = "Custom Properties"; listViewGroup4.Name = "_groupCustom"; this._propertyList.Groups.AddRange(new System.Windows.Forms.ListViewGroup[] { listViewGroup3, listViewGroup4}); this._propertyList.HeaderStyle = System.Windows.Forms.ColumnHeaderStyle.Nonclickable; listViewItem3.Group = listViewGroup3; listViewItem4.Group = listViewGroup4; this._propertyList.Items.AddRange(new System.Windows.Forms.ListViewItem[] { listViewItem3, listViewItem4}); this._propertyList.Location = new System.Drawing.Point(0, 0); this._propertyList.Margin = new System.Windows.Forms.Padding(0); this._propertyList.MultiSelect = false; this._propertyList.Name = "_propertyList"; this._propertyList.Size = new System.Drawing.Size(239, 264); this._propertyList.TabIndex = 0; this._propertyList.UseCompatibleStateImageBehavior = false; this._propertyList.View = System.Windows.Forms.View.Details; // // _colLabel // this._colLabel.Text = ""; this._colLabel.Width = 0; // // _colName // this._colName.Text = "Name"; this._colName.Width = 100; // // _colValue // this._colValue.Text = "Value"; this._colValue.Width = 135; // // toolStrip1 // this.toolStrip1.Dock = System.Windows.Forms.DockStyle.None; this.toolStrip1.GripStyle = System.Windows.Forms.ToolStripGripStyle.Hidden; this.toolStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { this._buttonAddProp, this._buttonRemoveProp, this.toolStripSeparator1, this.toolStripTextBox1}); this.toolStrip1.Location = new System.Drawing.Point(0, 0); this.toolStrip1.Name = "toolStrip1"; this.toolStrip1.Size = new System.Drawing.Size(239, 25); this.toolStrip1.Stretch = true; this.toolStrip1.TabIndex = 0; // // _buttonAddProp // this._buttonAddProp.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image; this._buttonAddProp.Image = ((System.Drawing.Image)(resources.GetObject("_buttonAddProp.Image"))); this._buttonAddProp.ImageTransparentColor = System.Drawing.Color.Magenta; this._buttonAddProp.Name = "_buttonAddProp"; this._buttonAddProp.Size = new System.Drawing.Size(23, 22); this._buttonAddProp.Text = "Add Property"; // // _buttonRemoveProp // this._buttonRemoveProp.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image; this._buttonRemoveProp.Image = ((System.Drawing.Image)(resources.GetObject("_buttonRemoveProp.Image"))); this._buttonRemoveProp.ImageTransparentColor = System.Drawing.Color.Magenta; this._buttonRemoveProp.Name = "_buttonRemoveProp"; this._buttonRemoveProp.Size = new System.Drawing.Size(23, 22); this._buttonRemoveProp.Text = "Delete Selected Property"; // // toolStripSeparator1 // this.toolStripSeparator1.Name = "toolStripSeparator1"; this.toolStripSeparator1.Size = new System.Drawing.Size(6, 25); // // toolStripTextBox1 // this.toolStripTextBox1.AutoSize = false; this.toolStripTextBox1.Name = "toolStripTextBox1"; this.toolStripTextBox1.ReadOnly = true; this.toolStripTextBox1.Size = new System.Drawing.Size(150, 22); // // PropertyPane // this.Controls.Add(this.toolStripContainer1); this.Margin = new System.Windows.Forms.Padding(0); this.Name = "PropertyPane"; this.Size = new System.Drawing.Size(239, 289); this.toolStripContainer1.ContentPanel.ResumeLayout(false); this.toolStripContainer1.TopToolStripPanel.ResumeLayout(false); this.toolStripContainer1.TopToolStripPanel.PerformLayout(); this.toolStripContainer1.ResumeLayout(false); this.toolStripContainer1.PerformLayout(); this.toolStrip1.ResumeLayout(false); this.toolStrip1.PerformLayout(); this.ResumeLayout(false); }
private void initText(ToolStripTextBox textBox) { m_obCountBar.AddItem(textBox, false); textBox.BorderStyle = BorderStyle.None; textBox.AutoSize = false; textBox.Width = m_nTextWidth; }
/// <summary> /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary> private void InitializeComponent() { this.components = new System.ComponentModel.Container(); System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(FunctionListViewer)); System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle1 = new System.Windows.Forms.DataGridViewCellStyle(); System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle2 = new System.Windows.Forms.DataGridViewCellStyle(); this.toolStrip1 = new System.Windows.Forms.ToolStrip(); this.toolButtonRecord = new System.Windows.Forms.ToolStripButton(); this.toolStripSeparator1 = new System.Windows.Forms.ToolStripSeparator(); this.toolStripSeparator2 = new System.Windows.Forms.ToolStripSeparator(); this.toolButtonFilter = new System.Windows.Forms.ToolStripButton(); this.toolStripSeparator3 = new System.Windows.Forms.ToolStripSeparator(); this.toolButtonFilterComparison = new System.Windows.Forms.ToolStripButton(); this.toolStripSeparator4 = new System.Windows.Forms.ToolStripSeparator(); this.toolStripSeparator5 = new System.Windows.Forms.ToolStripSeparator(); this.toolButtonRename = new System.Windows.Forms.ToolStripButton(); this.toolStripSeparator6 = new System.Windows.Forms.ToolStripSeparator(); this.toolButtonSave = new System.Windows.Forms.ToolStripButton(); this.toolStripSeparator12 = new System.Windows.Forms.ToolStripSeparator(); this.toolStripSeparator11 = new System.Windows.Forms.ToolStripSeparator(); this.toolStripLabelFastFilter = new System.Windows.Forms.ToolStripLabel(); this.toolStripTextBoxFastFilter = new System.Windows.Forms.ToolStripTextBox(); this.toolStripLabelNumberOfRecords = new System.Windows.Forms.ToolStripLabel(); this.toolStripSeparator14 = new System.Windows.Forms.ToolStripSeparator(); this.toolStripSeparator13 = new System.Windows.Forms.ToolStripSeparator(); this.toolStripButtonTakeFastFilter = new System.Windows.Forms.ToolStripButton(); this.contextMenuFunctions = new System.Windows.Forms.ContextMenuStrip(this.components); this.disableSelectedFunctionsToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.enableSelectedFunctionsToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.sendCallsToSelectedFunctionToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.toolStripSeparator7 = new System.Windows.Forms.ToolStripSeparator(); this.toolStripMenuItem1 = new System.Windows.Forms.ToolStripMenuItem(); this.deleteSelectedFunctionsToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.renameSelectedFunctionToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.renameSelectedFunctionsOrdinalToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.toolStripSeparator16 = new System.Windows.Forms.ToolStripSeparator(); this.copyToClipboardToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.addressToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.nameToolStripMenu = new System.Windows.Forms.ToolStripMenuItem(); this.addressesNamesToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.toolStripSeparator8 = new System.Windows.Forms.ToolStripSeparator(); this.loadNamesFromMapFileToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.importNamesFromIDASignaturesToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.toolStripExportFunction = new System.Windows.Forms.ToolStripMenuItem(); this.contextMenuStripCalls = new System.Windows.Forms.ContextMenuStrip(this.components); this.toolStripCallGoto = new System.Windows.Forms.ToolStripMenuItem(); this.toolStripSeparator10 = new System.Windows.Forms.ToolStripSeparator(); this.toolStripCallDisable = new System.Windows.Forms.ToolStripMenuItem(); this.toolStripCallEnable = new System.Windows.Forms.ToolStripMenuItem(); this.toolStripSeparator9 = new System.Windows.Forms.ToolStripSeparator(); this.toolStripCallSend = new System.Windows.Forms.ToolStripMenuItem(); this.toolStripCallResend = new System.Windows.Forms.ToolStripMenuItem(); this.splitContainerFunctionsPlaybar = new System.Windows.Forms.SplitContainer(); this.splitContainer1 = new System.Windows.Forms.SplitContainer(); this.tabControlFunctionsCalls = new System.Windows.Forms.TabControl(); this.tabPageFunctionList = new System.Windows.Forms.TabPage(); this.dataGridFunctions = new FunctionHacker.Controls.DataGridViewEx(); this.description = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.address = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.callCount = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.arguments = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.tabPageCallList = new System.Windows.Forms.TabPage(); this.splitContainer2 = new System.Windows.Forms.SplitContainer(); this.dataGridCalls = new System.Windows.Forms.DataGridView(); this.colCallNumber = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.colSource = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.colDestination = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.colArguments = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.dataGridCallArguments = new FunctionHacker.Controls.DataGridViewCall(); this.colArgumentName = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.colArgumentType = new System.Windows.Forms.DataGridViewComboBoxColumn(); this.colArgumentValue = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.controlVisMain = new FunctionHacker.Classes.Visualization.oVisMain(); this.buttonBreakdown = new System.Windows.Forms.Button(); this.contextMenuPlaybar = new System.Windows.Forms.ContextMenuStrip(this.components); this.toolStripMenuItem2 = new System.Windows.Forms.ToolStripMenuItem(); this.menuBreakdownModule = new System.Windows.Forms.ToolStripMenuItem(); this.menuBreakdownThread = new System.Windows.Forms.ToolStripMenuItem(); this.menuBreakdownCallType = new System.Windows.Forms.ToolStripMenuItem(); this.menuBreakdownCallFrequency = new System.Windows.Forms.ToolStripMenuItem(); this.binsToolStripMenuItem6 = new System.Windows.Forms.ToolStripMenuItem(); this.binsToolStripMenuItem11 = new System.Windows.Forms.ToolStripMenuItem(); this.binsToolStripMenuItem21 = new System.Windows.Forms.ToolStripMenuItem(); this.binsToolStripMenuItem31 = new System.Windows.Forms.ToolStripMenuItem(); this.binsToolStripMenuItem41 = new System.Windows.Forms.ToolStripMenuItem(); this.binsToolStripMenuItem51 = new System.Windows.Forms.ToolStripMenuItem(); this.addPToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.moduleToolStripMenuItem1 = new System.Windows.Forms.ToolStripMenuItem(); this.itemToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.menuAddPlotIntermodular = new System.Windows.Forms.ToolStripMenuItem(); this.menuAddPlotIntramodular = new System.Windows.Forms.ToolStripMenuItem(); this.menuAddPlotHasString = new System.Windows.Forms.ToolStripMenuItem(); this.menuAddPlotFromFilter = new System.Windows.Forms.ToolStripMenuItem(); this.menuRemoveAllPlots = new System.Windows.Forms.ToolStripMenuItem(); this.toolStripSeparator15 = new System.Windows.Forms.ToolStripSeparator(); this.enableStartRecording = new System.Windows.Forms.Timer(this.components); this.dataGridViewTextBoxColumn1 = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.dataGridViewTextBoxColumn2 = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.dataGridViewTextBoxColumn3 = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.controlVisPlayBar = new FunctionHacker.Classes.Visualization.oVisPlayBar(); this.toolStrip1.SuspendLayout(); this.contextMenuFunctions.SuspendLayout(); this.contextMenuStripCalls.SuspendLayout(); this.splitContainerFunctionsPlaybar.Panel1.SuspendLayout(); this.splitContainerFunctionsPlaybar.Panel2.SuspendLayout(); this.splitContainerFunctionsPlaybar.SuspendLayout(); this.splitContainer1.Panel1.SuspendLayout(); this.splitContainer1.Panel2.SuspendLayout(); this.splitContainer1.SuspendLayout(); this.tabControlFunctionsCalls.SuspendLayout(); this.tabPageFunctionList.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.dataGridFunctions)).BeginInit(); this.tabPageCallList.SuspendLayout(); this.splitContainer2.Panel1.SuspendLayout(); this.splitContainer2.Panel2.SuspendLayout(); this.splitContainer2.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.dataGridCalls)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.dataGridCallArguments)).BeginInit(); this.contextMenuPlaybar.SuspendLayout(); this.SuspendLayout(); // // toolStrip1 // this.toolStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { this.toolButtonRecord, this.toolStripSeparator1, this.toolStripSeparator2, this.toolButtonFilter, this.toolStripSeparator3, this.toolButtonFilterComparison, this.toolStripSeparator4, this.toolStripSeparator5, this.toolButtonRename, this.toolStripSeparator6, this.toolButtonSave, this.toolStripSeparator12, this.toolStripSeparator11, this.toolStripLabelFastFilter, this.toolStripTextBoxFastFilter, this.toolStripLabelNumberOfRecords, this.toolStripSeparator14, this.toolStripSeparator13, this.toolStripButtonTakeFastFilter}); this.toolStrip1.Location = new System.Drawing.Point(0, 0); this.toolStrip1.Name = "toolStrip1"; this.toolStrip1.Size = new System.Drawing.Size(1062, 25); this.toolStrip1.TabIndex = 0; this.toolStrip1.Text = "toolStrip1"; // // toolButtonRecord // this.toolButtonRecord.CheckOnClick = true; this.toolButtonRecord.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Text; this.toolButtonRecord.ImageTransparentColor = System.Drawing.Color.Magenta; this.toolButtonRecord.Name = "toolButtonRecord"; this.toolButtonRecord.Size = new System.Drawing.Size(92, 22); this.toolButtonRecord.Text = "Start Recording"; this.toolButtonRecord.ToolTipText = "(CTRL+F5)"; this.toolButtonRecord.Click += new System.EventHandler(this.toolButtonRecord_Click); // // toolStripSeparator1 // this.toolStripSeparator1.Name = "toolStripSeparator1"; this.toolStripSeparator1.Size = new System.Drawing.Size(6, 25); // // toolStripSeparator2 // this.toolStripSeparator2.Name = "toolStripSeparator2"; this.toolStripSeparator2.Size = new System.Drawing.Size(6, 25); // // toolButtonFilter // this.toolButtonFilter.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Text; this.toolButtonFilter.Image = ((System.Drawing.Image)(resources.GetObject("toolButtonFilter.Image"))); this.toolButtonFilter.ImageTransparentColor = System.Drawing.Color.Magenta; this.toolButtonFilter.Name = "toolButtonFilter"; this.toolButtonFilter.Size = new System.Drawing.Size(37, 22); this.toolButtonFilter.Text = "Filter"; this.toolButtonFilter.Click += new System.EventHandler(this.toolButtonFilter_Click); // // toolStripSeparator3 // this.toolStripSeparator3.Name = "toolStripSeparator3"; this.toolStripSeparator3.Size = new System.Drawing.Size(6, 25); this.toolStripSeparator3.Visible = false; // // toolButtonFilterComparison // this.toolButtonFilterComparison.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Text; this.toolButtonFilterComparison.Image = ((System.Drawing.Image)(resources.GetObject("toolButtonFilterComparison.Image"))); this.toolButtonFilterComparison.ImageTransparentColor = System.Drawing.Color.Magenta; this.toolButtonFilterComparison.Name = "toolButtonFilterComparison"; this.toolButtonFilterComparison.Size = new System.Drawing.Size(121, 22); this.toolButtonFilterComparison.Text = "Filter by Comparison"; this.toolButtonFilterComparison.Visible = false; this.toolButtonFilterComparison.Click += new System.EventHandler(this.toolButtonFilterComparison_Click); // // toolStripSeparator4 // this.toolStripSeparator4.Name = "toolStripSeparator4"; this.toolStripSeparator4.Size = new System.Drawing.Size(6, 25); this.toolStripSeparator4.Visible = false; // // toolStripSeparator5 // this.toolStripSeparator5.Name = "toolStripSeparator5"; this.toolStripSeparator5.Size = new System.Drawing.Size(6, 25); this.toolStripSeparator5.Visible = false; // // toolButtonRename // this.toolButtonRename.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Text; this.toolButtonRename.Image = ((System.Drawing.Image)(resources.GetObject("toolButtonRename.Image"))); this.toolButtonRename.ImageTransparentColor = System.Drawing.Color.Magenta; this.toolButtonRename.Name = "toolButtonRename"; this.toolButtonRename.Size = new System.Drawing.Size(54, 22); this.toolButtonRename.Text = "Rename"; this.toolButtonRename.Visible = false; this.toolButtonRename.Click += new System.EventHandler(this.toolButtonRename_Click); // // toolStripSeparator6 // this.toolStripSeparator6.Name = "toolStripSeparator6"; this.toolStripSeparator6.Size = new System.Drawing.Size(6, 25); this.toolStripSeparator6.Visible = false; // // toolButtonSave // this.toolButtonSave.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Text; this.toolButtonSave.Image = ((System.Drawing.Image)(resources.GetObject("toolButtonSave.Image"))); this.toolButtonSave.ImageTransparentColor = System.Drawing.Color.Magenta; this.toolButtonSave.Name = "toolButtonSave"; this.toolButtonSave.Size = new System.Drawing.Size(35, 22); this.toolButtonSave.Text = "Save"; this.toolButtonSave.Visible = false; this.toolButtonSave.Click += new System.EventHandler(this.toolButtonSave_Click); // // toolStripSeparator12 // this.toolStripSeparator12.Name = "toolStripSeparator12"; this.toolStripSeparator12.Size = new System.Drawing.Size(6, 25); // // toolStripSeparator11 // this.toolStripSeparator11.Name = "toolStripSeparator11"; this.toolStripSeparator11.Size = new System.Drawing.Size(6, 25); // // toolStripLabelFastFilter // this.toolStripLabelFastFilter.BackColor = System.Drawing.SystemColors.Control; this.toolStripLabelFastFilter.ForeColor = System.Drawing.SystemColors.Highlight; this.toolStripLabelFastFilter.Name = "toolStripLabelFastFilter"; this.toolStripLabelFastFilter.Size = new System.Drawing.Size(70, 22); this.toolStripLabelFastFilter.Text = "Quick Filter:"; // // toolStripTextBoxFastFilter // this.toolStripTextBoxFastFilter.Name = "toolStripTextBoxFastFilter"; this.toolStripTextBoxFastFilter.Size = new System.Drawing.Size(100, 25); this.toolStripTextBoxFastFilter.TextChanged += new System.EventHandler(this.ToolStripTextBoxFastFilterTextChanged); // // toolStripLabelNumberOfRecords // this.toolStripLabelNumberOfRecords.ForeColor = System.Drawing.SystemColors.Highlight; this.toolStripLabelNumberOfRecords.Name = "toolStripLabelNumberOfRecords"; this.toolStripLabelNumberOfRecords.Size = new System.Drawing.Size(71, 22); this.toolStripLabelNumberOfRecords.Text = "Functions: 0"; // // toolStripSeparator14 // this.toolStripSeparator14.Name = "toolStripSeparator14"; this.toolStripSeparator14.Size = new System.Drawing.Size(6, 25); // // toolStripSeparator13 // this.toolStripSeparator13.Name = "toolStripSeparator13"; this.toolStripSeparator13.Size = new System.Drawing.Size(6, 25); // // toolStripButtonTakeFastFilter // this.toolStripButtonTakeFastFilter.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Text; this.toolStripButtonTakeFastFilter.ForeColor = System.Drawing.SystemColors.Highlight; this.toolStripButtonTakeFastFilter.Image = ((System.Drawing.Image)(resources.GetObject("toolStripButtonTakeFastFilter.Image"))); this.toolStripButtonTakeFastFilter.ImageTransparentColor = System.Drawing.Color.Magenta; this.toolStripButtonTakeFastFilter.Name = "toolStripButtonTakeFastFilter"; this.toolStripButtonTakeFastFilter.Size = new System.Drawing.Size(150, 22); this.toolStripButtonTakeFastFilter.Text = "New Tab from Quick Filter"; this.toolStripButtonTakeFastFilter.ToolTipText = "Take functions from fast filter into new monitor tab"; this.toolStripButtonTakeFastFilter.Click += new System.EventHandler(this.toolStripButtonTakeFastFilter_Click); // // contextMenuFunctions // this.contextMenuFunctions.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { this.disableSelectedFunctionsToolStripMenuItem, this.enableSelectedFunctionsToolStripMenuItem, this.sendCallsToSelectedFunctionToolStripMenuItem, this.toolStripSeparator7, this.toolStripMenuItem1, this.deleteSelectedFunctionsToolStripMenuItem, this.renameSelectedFunctionToolStripMenuItem, this.renameSelectedFunctionsOrdinalToolStripMenuItem, this.toolStripSeparator16, this.copyToClipboardToolStripMenuItem, this.toolStripSeparator8, this.loadNamesFromMapFileToolStripMenuItem, this.importNamesFromIDASignaturesToolStripMenuItem, this.toolStripExportFunction}); this.contextMenuFunctions.Name = "contextMenuFunctions"; this.contextMenuFunctions.Size = new System.Drawing.Size(385, 264); this.contextMenuFunctions.Opening += new System.ComponentModel.CancelEventHandler(this.contextMenuFunctions_Opening); // // disableSelectedFunctionsToolStripMenuItem // this.disableSelectedFunctionsToolStripMenuItem.Name = "disableSelectedFunctionsToolStripMenuItem"; this.disableSelectedFunctionsToolStripMenuItem.Size = new System.Drawing.Size(384, 22); this.disableSelectedFunctionsToolStripMenuItem.Text = "Disable Selected Function(s)"; this.disableSelectedFunctionsToolStripMenuItem.Click += new System.EventHandler(this.disableSelectedFunctionsToolStripMenuItem_Click); // // enableSelectedFunctionsToolStripMenuItem // this.enableSelectedFunctionsToolStripMenuItem.Name = "enableSelectedFunctionsToolStripMenuItem"; this.enableSelectedFunctionsToolStripMenuItem.Size = new System.Drawing.Size(384, 22); this.enableSelectedFunctionsToolStripMenuItem.Text = "Enable Selected Function(s)"; this.enableSelectedFunctionsToolStripMenuItem.Click += new System.EventHandler(this.enableSelectedFunctionsToolStripMenuItem_Click); // // sendCallsToSelectedFunctionToolStripMenuItem // this.sendCallsToSelectedFunctionToolStripMenuItem.Name = "sendCallsToSelectedFunctionToolStripMenuItem"; this.sendCallsToSelectedFunctionToolStripMenuItem.Size = new System.Drawing.Size(384, 22); this.sendCallsToSelectedFunctionToolStripMenuItem.Text = "Send Calls to Selected Function"; this.sendCallsToSelectedFunctionToolStripMenuItem.Click += new System.EventHandler(this.sendCallsToSelectedFunctionToolStripMenuItem_Click); // // toolStripSeparator7 // this.toolStripSeparator7.Name = "toolStripSeparator7"; this.toolStripSeparator7.Size = new System.Drawing.Size(381, 6); // // toolStripMenuItem1 // this.toolStripMenuItem1.Name = "toolStripMenuItem1"; this.toolStripMenuItem1.Size = new System.Drawing.Size(384, 22); this.toolStripMenuItem1.Text = "Create New Function List from Selected Function(s)"; this.toolStripMenuItem1.Click += new System.EventHandler(this.newListSelectedFunctionsToolStripMenuItem_Click); // // deleteSelectedFunctionsToolStripMenuItem // this.deleteSelectedFunctionsToolStripMenuItem.Name = "deleteSelectedFunctionsToolStripMenuItem"; this.deleteSelectedFunctionsToolStripMenuItem.Size = new System.Drawing.Size(384, 22); this.deleteSelectedFunctionsToolStripMenuItem.Text = "Delete Selected Function(s)"; this.deleteSelectedFunctionsToolStripMenuItem.Click += new System.EventHandler(this.deleteSelectedFunctionsToolStripMenuItem_Click); // // renameSelectedFunctionToolStripMenuItem // this.renameSelectedFunctionToolStripMenuItem.Name = "renameSelectedFunctionToolStripMenuItem"; this.renameSelectedFunctionToolStripMenuItem.Size = new System.Drawing.Size(384, 22); this.renameSelectedFunctionToolStripMenuItem.Text = "Rename Selected Function"; this.renameSelectedFunctionToolStripMenuItem.Click += new System.EventHandler(this.renameSelectedFunctionToolStripMenuItem_Click); // // renameSelectedFunctionsOrdinalToolStripMenuItem // this.renameSelectedFunctionsOrdinalToolStripMenuItem.Name = "renameSelectedFunctionsOrdinalToolStripMenuItem"; this.renameSelectedFunctionsOrdinalToolStripMenuItem.Size = new System.Drawing.Size(384, 22); this.renameSelectedFunctionsOrdinalToolStripMenuItem.Text = "Rename Selected Functions(s) - Ordinal "; this.renameSelectedFunctionsOrdinalToolStripMenuItem.Click += new System.EventHandler(this.renameSelectedFunctionsOrdinalToolStripMenuItem_Click); // // toolStripSeparator16 // this.toolStripSeparator16.Name = "toolStripSeparator16"; this.toolStripSeparator16.Size = new System.Drawing.Size(381, 6); // // copyToClipboardToolStripMenuItem // this.copyToClipboardToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] { this.addressToolStripMenuItem, this.nameToolStripMenu, this.addressesNamesToolStripMenuItem}); this.copyToClipboardToolStripMenuItem.Name = "copyToClipboardToolStripMenuItem"; this.copyToClipboardToolStripMenuItem.Size = new System.Drawing.Size(384, 22); this.copyToClipboardToolStripMenuItem.Text = "Copy to Clipboard"; // // addressToolStripMenuItem // this.addressToolStripMenuItem.Name = "addressToolStripMenuItem"; this.addressToolStripMenuItem.Size = new System.Drawing.Size(194, 22); this.addressToolStripMenuItem.Text = "Address(es)"; this.addressToolStripMenuItem.Click += new System.EventHandler(this.addressToolStripMenuItem_Click); // // nameToolStripMenu // this.nameToolStripMenu.Name = "nameToolStripMenu"; this.nameToolStripMenu.Size = new System.Drawing.Size(194, 22); this.nameToolStripMenu.Text = "Name(s)"; this.nameToolStripMenu.Click += new System.EventHandler(this.nameToolStripMenu_Click); // // addressesNamesToolStripMenuItem // this.addressesNamesToolStripMenuItem.Name = "addressesNamesToolStripMenuItem"; this.addressesNamesToolStripMenuItem.Size = new System.Drawing.Size(194, 22); this.addressesNamesToolStripMenuItem.Text = "Address(es) + Name(s)"; this.addressesNamesToolStripMenuItem.Click += new System.EventHandler(this.addressesNamesToolStripMenuItem_Click); // // toolStripSeparator8 // this.toolStripSeparator8.Name = "toolStripSeparator8"; this.toolStripSeparator8.Size = new System.Drawing.Size(381, 6); // // loadNamesFromMapFileToolStripMenuItem // this.loadNamesFromMapFileToolStripMenuItem.Name = "loadNamesFromMapFileToolStripMenuItem"; this.loadNamesFromMapFileToolStripMenuItem.Size = new System.Drawing.Size(384, 22); this.loadNamesFromMapFileToolStripMenuItem.Text = "Import Names from .map file"; this.loadNamesFromMapFileToolStripMenuItem.Click += new System.EventHandler(this.LoadNamesFromMapFileToolStripMenuItemClick); // // importNamesFromIDASignaturesToolStripMenuItem // this.importNamesFromIDASignaturesToolStripMenuItem.Name = "importNamesFromIDASignaturesToolStripMenuItem"; this.importNamesFromIDASignaturesToolStripMenuItem.Size = new System.Drawing.Size(384, 22); this.importNamesFromIDASignaturesToolStripMenuItem.Text = "Import Names from IDA signatures for selected functions..."; this.importNamesFromIDASignaturesToolStripMenuItem.Click += new System.EventHandler(this.importNamesFromIDASignaturesToolStripMenuItem_Click); // // toolStripExportFunction // this.toolStripExportFunction.Name = "toolStripExportFunction"; this.toolStripExportFunction.Size = new System.Drawing.Size(384, 22); this.toolStripExportFunction.Text = "Export Selected Function to C#"; this.toolStripExportFunction.Click += new System.EventHandler(this.toolStripExportFunction_Click); // // contextMenuStripCalls // this.contextMenuStripCalls.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { this.toolStripCallGoto, this.toolStripSeparator10, this.toolStripCallDisable, this.toolStripCallEnable, this.toolStripSeparator9, this.toolStripCallSend, this.toolStripCallResend}); this.contextMenuStripCalls.Name = "contextMenuFunctions"; this.contextMenuStripCalls.Size = new System.Drawing.Size(240, 126); this.contextMenuStripCalls.Opening += new System.ComponentModel.CancelEventHandler(this.contextMenuStripCalls_Opening); // // toolStripCallGoto // this.toolStripCallGoto.Name = "toolStripCallGoto"; this.toolStripCallGoto.Size = new System.Drawing.Size(239, 22); this.toolStripCallGoto.Text = "Goto Function"; this.toolStripCallGoto.Click += new System.EventHandler(this.toolStripCallGoto_Click); // // toolStripSeparator10 // this.toolStripSeparator10.Name = "toolStripSeparator10"; this.toolStripSeparator10.Size = new System.Drawing.Size(236, 6); // // toolStripCallDisable // this.toolStripCallDisable.Name = "toolStripCallDisable"; this.toolStripCallDisable.Size = new System.Drawing.Size(239, 22); this.toolStripCallDisable.Text = "Disable Selected Function(s)"; this.toolStripCallDisable.Click += new System.EventHandler(this.toolStripCallDisable_Click); // // toolStripCallEnable // this.toolStripCallEnable.Name = "toolStripCallEnable"; this.toolStripCallEnable.Size = new System.Drawing.Size(239, 22); this.toolStripCallEnable.Text = "Enable Selected Function(s)"; this.toolStripCallEnable.Click += new System.EventHandler(this.toolStripCallEnable_Click); // // toolStripSeparator9 // this.toolStripSeparator9.Name = "toolStripSeparator9"; this.toolStripSeparator9.Size = new System.Drawing.Size(236, 6); // // toolStripCallSend // this.toolStripCallSend.Name = "toolStripCallSend"; this.toolStripCallSend.Size = new System.Drawing.Size(239, 22); this.toolStripCallSend.Text = "Send Calls to Selected Function"; this.toolStripCallSend.Click += new System.EventHandler(this.toolStripCallSend_Click); // // toolStripCallResend // this.toolStripCallResend.Enabled = false; this.toolStripCallResend.Name = "toolStripCallResend"; this.toolStripCallResend.Size = new System.Drawing.Size(239, 22); this.toolStripCallResend.Text = "Resend this Call"; // // splitContainerFunctionsPlaybar // this.splitContainerFunctionsPlaybar.Dock = System.Windows.Forms.DockStyle.Fill; this.splitContainerFunctionsPlaybar.Location = new System.Drawing.Point(0, 25); this.splitContainerFunctionsPlaybar.Name = "splitContainerFunctionsPlaybar"; this.splitContainerFunctionsPlaybar.Orientation = System.Windows.Forms.Orientation.Horizontal; // // splitContainerFunctionsPlaybar.Panel1 // this.splitContainerFunctionsPlaybar.Panel1.Controls.Add(this.splitContainer1); // // splitContainerFunctionsPlaybar.Panel2 // this.splitContainerFunctionsPlaybar.Panel2.BackColor = System.Drawing.Color.Black; this.splitContainerFunctionsPlaybar.Panel2.Controls.Add(this.buttonBreakdown); this.splitContainerFunctionsPlaybar.Size = new System.Drawing.Size(1062, 661); this.splitContainerFunctionsPlaybar.SplitterDistance = 606; this.splitContainerFunctionsPlaybar.TabIndex = 6; // // splitContainer1 // this.splitContainer1.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this.splitContainer1.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; this.splitContainer1.Location = new System.Drawing.Point(3, 0); this.splitContainer1.Name = "splitContainer1"; // // splitContainer1.Panel1 // this.splitContainer1.Panel1.Controls.Add(this.tabControlFunctionsCalls); // // splitContainer1.Panel2 // this.splitContainer1.Panel2.Controls.Add(this.controlVisMain); this.splitContainer1.Size = new System.Drawing.Size(1056, 606); this.splitContainer1.SplitterDistance = 715; this.splitContainer1.TabIndex = 6; // // tabControlFunctionsCalls // this.tabControlFunctionsCalls.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this.tabControlFunctionsCalls.Controls.Add(this.tabPageFunctionList); this.tabControlFunctionsCalls.Controls.Add(this.tabPageCallList); this.tabControlFunctionsCalls.Location = new System.Drawing.Point(3, 0); this.tabControlFunctionsCalls.Name = "tabControlFunctionsCalls"; this.tabControlFunctionsCalls.SelectedIndex = 0; this.tabControlFunctionsCalls.Size = new System.Drawing.Size(708, 605); this.tabControlFunctionsCalls.TabIndex = 5; this.tabControlFunctionsCalls.SelectedIndexChanged += new System.EventHandler(this.TabControlFunctionsCallsSelectedIndexChanged); // // tabPageFunctionList // this.tabPageFunctionList.Controls.Add(this.dataGridFunctions); this.tabPageFunctionList.Location = new System.Drawing.Point(4, 22); this.tabPageFunctionList.Name = "tabPageFunctionList"; this.tabPageFunctionList.Padding = new System.Windows.Forms.Padding(3); this.tabPageFunctionList.Size = new System.Drawing.Size(700, 579); this.tabPageFunctionList.TabIndex = 0; this.tabPageFunctionList.Text = "Function List"; this.tabPageFunctionList.UseVisualStyleBackColor = true; // // dataGridFunctions // this.dataGridFunctions.AllowUserToAddRows = false; this.dataGridFunctions.AllowUserToDeleteRows = false; this.dataGridFunctions.AllowUserToResizeRows = false; this.dataGridFunctions.BackgroundColor = System.Drawing.Color.White; this.dataGridFunctions.BorderStyle = System.Windows.Forms.BorderStyle.None; this.dataGridFunctions.CellBorderStyle = System.Windows.Forms.DataGridViewCellBorderStyle.None; this.dataGridFunctions.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize; this.dataGridFunctions.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] { this.description, this.address, this.callCount, this.arguments}); this.dataGridFunctions.ContextMenuStrip = this.contextMenuFunctions; this.dataGridFunctions.Dock = System.Windows.Forms.DockStyle.Fill; this.dataGridFunctions.Location = new System.Drawing.Point(3, 3); this.dataGridFunctions.Name = "dataGridFunctions"; this.dataGridFunctions.RowHeadersBorderStyle = System.Windows.Forms.DataGridViewHeaderBorderStyle.Single; this.dataGridFunctions.RowHeadersVisible = false; this.dataGridFunctions.ScrollBars = System.Windows.Forms.ScrollBars.Vertical; this.dataGridFunctions.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect; this.dataGridFunctions.Size = new System.Drawing.Size(694, 573); this.dataGridFunctions.Suspended = false; this.dataGridFunctions.TabIndex = 0; this.dataGridFunctions.VirtualMode = true; this.dataGridFunctions.CellBeginEdit += new System.Windows.Forms.DataGridViewCellCancelEventHandler(this.dataGridFunctions_CellBeginEdit); this.dataGridFunctions.CellValueNeeded += new System.Windows.Forms.DataGridViewCellValueEventHandler(this.dataGridFunctions_CellValueNeeded); this.dataGridFunctions.RowsAdded += new System.Windows.Forms.DataGridViewRowsAddedEventHandler(this.DataGridFunctionsRowsAdded); this.dataGridFunctions.CellValuePushed += new System.Windows.Forms.DataGridViewCellValueEventHandler(this.dataGridFunctions_CellValuePushed); this.dataGridFunctions.RowsRemoved += new System.Windows.Forms.DataGridViewRowsRemovedEventHandler(this.DataGridFunctionsRowsRemoved); // // description // this.description.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.Fill; this.description.HeaderText = "Description"; this.description.Name = "description"; // // address // this.address.HeaderText = "Address"; this.address.Name = "address"; // // callCount // this.callCount.HeaderText = "Call Count: Total/Selected Region"; this.callCount.Name = "callCount"; this.callCount.ReadOnly = true; // // arguments // this.arguments.HeaderText = "Number of Arguments"; this.arguments.Name = "arguments"; this.arguments.ReadOnly = true; // // tabPageCallList // this.tabPageCallList.Controls.Add(this.splitContainer2); this.tabPageCallList.Location = new System.Drawing.Point(4, 22); this.tabPageCallList.Name = "tabPageCallList"; this.tabPageCallList.Padding = new System.Windows.Forms.Padding(3); this.tabPageCallList.Size = new System.Drawing.Size(700, 579); this.tabPageCallList.TabIndex = 1; this.tabPageCallList.Text = "Call List"; this.tabPageCallList.UseVisualStyleBackColor = true; // // splitContainer2 // this.splitContainer2.Dock = System.Windows.Forms.DockStyle.Fill; this.splitContainer2.Location = new System.Drawing.Point(3, 3); this.splitContainer2.Name = "splitContainer2"; this.splitContainer2.Orientation = System.Windows.Forms.Orientation.Horizontal; // // splitContainer2.Panel1 // this.splitContainer2.Panel1.Controls.Add(this.dataGridCalls); // // splitContainer2.Panel2 // this.splitContainer2.Panel2.Controls.Add(this.dataGridCallArguments); this.splitContainer2.Size = new System.Drawing.Size(694, 573); this.splitContainer2.SplitterDistance = 426; this.splitContainer2.TabIndex = 3; // // dataGridCalls // this.dataGridCalls.AllowUserToAddRows = false; this.dataGridCalls.AllowUserToDeleteRows = false; this.dataGridCalls.AllowUserToResizeRows = false; this.dataGridCalls.BackgroundColor = System.Drawing.Color.White; this.dataGridCalls.BorderStyle = System.Windows.Forms.BorderStyle.None; this.dataGridCalls.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize; this.dataGridCalls.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] { this.colCallNumber, this.colSource, this.colDestination, this.colArguments}); this.dataGridCalls.ContextMenuStrip = this.contextMenuStripCalls; dataGridViewCellStyle1.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft; dataGridViewCellStyle1.BackColor = System.Drawing.SystemColors.Window; dataGridViewCellStyle1.Font = new System.Drawing.Font("Consolas", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); dataGridViewCellStyle1.ForeColor = System.Drawing.SystemColors.ControlText; dataGridViewCellStyle1.SelectionBackColor = System.Drawing.SystemColors.Highlight; dataGridViewCellStyle1.SelectionForeColor = System.Drawing.SystemColors.HighlightText; dataGridViewCellStyle1.WrapMode = System.Windows.Forms.DataGridViewTriState.True; this.dataGridCalls.DefaultCellStyle = dataGridViewCellStyle1; this.dataGridCalls.Dock = System.Windows.Forms.DockStyle.Fill; this.dataGridCalls.GridColor = System.Drawing.Color.FromArgb(((int)(((byte)(100)))), ((int)(((byte)(100)))), ((int)(((byte)(200))))); this.dataGridCalls.Location = new System.Drawing.Point(0, 0); this.dataGridCalls.Name = "dataGridCalls"; this.dataGridCalls.RowHeadersBorderStyle = System.Windows.Forms.DataGridViewHeaderBorderStyle.None; this.dataGridCalls.RowHeadersVisible = false; this.dataGridCalls.RowTemplate.DefaultCellStyle.Font = new System.Drawing.Font("Consolas", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.dataGridCalls.RowTemplate.DefaultCellStyle.WrapMode = System.Windows.Forms.DataGridViewTriState.True; this.dataGridCalls.RowTemplate.Height = 24; this.dataGridCalls.ScrollBars = System.Windows.Forms.ScrollBars.Vertical; this.dataGridCalls.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect; this.dataGridCalls.Size = new System.Drawing.Size(694, 426); this.dataGridCalls.TabIndex = 1; this.dataGridCalls.VirtualMode = true; this.dataGridCalls.RowPrePaint += new System.Windows.Forms.DataGridViewRowPrePaintEventHandler(this.dataGridCalls_RowPrepaint); this.dataGridCalls.CellValueNeeded += new System.Windows.Forms.DataGridViewCellValueEventHandler(this.dataGridCalls_CellValueNeeded); this.dataGridCalls.SelectionChanged += new System.EventHandler(this.dataGridCalls_SelectionChanged); this.dataGridCalls.CellContentClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.dataGridCalls_CellContentClick); // // colCallNumber // this.colCallNumber.Frozen = true; this.colCallNumber.HeaderText = "Call Number"; this.colCallNumber.Name = "colCallNumber"; this.colCallNumber.Width = 50; // // colSource // this.colSource.Frozen = true; this.colSource.HeaderText = "Source"; this.colSource.Name = "colSource"; this.colSource.Width = 150; // // colDestination // this.colDestination.Frozen = true; this.colDestination.HeaderText = "Destination"; this.colDestination.Name = "colDestination"; this.colDestination.Width = 150; // // colArguments // this.colArguments.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.Fill; this.colArguments.HeaderText = "Arguments"; this.colArguments.Name = "colArguments"; // // dataGridCallArguments // this.dataGridCallArguments.AllowUserToAddRows = false; this.dataGridCallArguments.AllowUserToDeleteRows = false; this.dataGridCallArguments.AutoSizeRowsMode = System.Windows.Forms.DataGridViewAutoSizeRowsMode.AllCells; this.dataGridCallArguments.BackgroundColor = System.Drawing.Color.White; this.dataGridCallArguments.BorderStyle = System.Windows.Forms.BorderStyle.None; this.dataGridCallArguments.CellBorderStyle = System.Windows.Forms.DataGridViewCellBorderStyle.None; this.dataGridCallArguments.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize; this.dataGridCallArguments.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] { this.colArgumentName, this.colArgumentType, this.colArgumentValue}); dataGridViewCellStyle2.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft; dataGridViewCellStyle2.BackColor = System.Drawing.SystemColors.Window; dataGridViewCellStyle2.Font = new System.Drawing.Font("Consolas", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); dataGridViewCellStyle2.ForeColor = System.Drawing.SystemColors.ControlText; dataGridViewCellStyle2.SelectionBackColor = System.Drawing.SystemColors.Highlight; dataGridViewCellStyle2.SelectionForeColor = System.Drawing.SystemColors.HighlightText; dataGridViewCellStyle2.WrapMode = System.Windows.Forms.DataGridViewTriState.True; this.dataGridCallArguments.DefaultCellStyle = dataGridViewCellStyle2; this.dataGridCallArguments.Dock = System.Windows.Forms.DockStyle.Fill; this.dataGridCallArguments.EditMode = System.Windows.Forms.DataGridViewEditMode.EditOnEnter; this.dataGridCallArguments.Location = new System.Drawing.Point(0, 0); this.dataGridCallArguments.Name = "dataGridCallArguments"; this.dataGridCallArguments.RowHeadersVisible = false; this.dataGridCallArguments.RowTemplate.DefaultCellStyle.WrapMode = System.Windows.Forms.DataGridViewTriState.True; this.dataGridCallArguments.RowTemplate.Height = 24; this.dataGridCallArguments.Size = new System.Drawing.Size(694, 143); this.dataGridCallArguments.TabIndex = 0; // // colArgumentName // this.colArgumentName.HeaderText = "Argument Name"; this.colArgumentName.Name = "colArgumentName"; this.colArgumentName.Width = 150; // // colArgumentType // this.colArgumentType.HeaderText = "Type"; this.colArgumentType.Name = "colArgumentType"; this.colArgumentType.Resizable = System.Windows.Forms.DataGridViewTriState.True; this.colArgumentType.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic; this.colArgumentType.Width = 120; // // colArgumentValue // this.colArgumentValue.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.Fill; this.colArgumentValue.HeaderText = "Value"; this.colArgumentValue.Name = "colArgumentValue"; // // controlVisMain // this.controlVisMain.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this.controlVisMain.BackColor = System.Drawing.Color.Black; this.controlVisMain.Location = new System.Drawing.Point(-2, 0); this.controlVisMain.Name = "controlVisMain"; this.controlVisMain.Size = new System.Drawing.Size(338, 605); this.controlVisMain.TabIndex = 0; // // buttonBreakdown // this.buttonBreakdown.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left))); this.buttonBreakdown.BackColor = System.Drawing.Color.Yellow; this.buttonBreakdown.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.buttonBreakdown.Location = new System.Drawing.Point(0, 34); this.buttonBreakdown.Name = "buttonBreakdown"; this.buttonBreakdown.Size = new System.Drawing.Size(21, 17); this.buttonBreakdown.TabIndex = 0; this.buttonBreakdown.Text = "^"; this.buttonBreakdown.UseVisualStyleBackColor = false; this.buttonBreakdown.Click += new System.EventHandler(this.buttonBreakdown_Click); // // contextMenuPlaybar // this.contextMenuPlaybar.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { this.toolStripMenuItem2, this.addPToolStripMenuItem, this.menuRemoveAllPlots, this.toolStripSeparator15}); this.contextMenuPlaybar.Name = "contextMenuPlaybar"; this.contextMenuPlaybar.Size = new System.Drawing.Size(164, 76); this.contextMenuPlaybar.Text = "Breakdown"; // // toolStripMenuItem2 // this.toolStripMenuItem2.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] { this.menuBreakdownModule, this.menuBreakdownThread, this.menuBreakdownCallType, this.menuBreakdownCallFrequency}); this.toolStripMenuItem2.Name = "toolStripMenuItem2"; this.toolStripMenuItem2.Size = new System.Drawing.Size(163, 22); this.toolStripMenuItem2.Text = "Breakdown by"; // // menuBreakdownModule // this.menuBreakdownModule.Name = "menuBreakdownModule"; this.menuBreakdownModule.Size = new System.Drawing.Size(213, 22); this.menuBreakdownModule.Text = "Module"; this.menuBreakdownModule.ToolTipText = "Creates a plot for each module."; this.menuBreakdownModule.Click += new System.EventHandler(this.menuBreakdownModule_Click); // // menuBreakdownThread // this.menuBreakdownThread.Name = "menuBreakdownThread"; this.menuBreakdownThread.Size = new System.Drawing.Size(213, 22); this.menuBreakdownThread.Text = "Thread"; this.menuBreakdownThread.ToolTipText = "Creates a plot for each thread."; this.menuBreakdownThread.Click += new System.EventHandler(this.menuBreakdownThread_Click); // // menuBreakdownCallType // this.menuBreakdownCallType.Name = "menuBreakdownCallType"; this.menuBreakdownCallType.Size = new System.Drawing.Size(213, 22); this.menuBreakdownCallType.Text = "Intermodule/Intramodular"; this.menuBreakdownCallType.ToolTipText = "Creates a plot intermodular calls and a plot for intramodular calls."; this.menuBreakdownCallType.Click += new System.EventHandler(this.menuBreakdownCallType_Click); // // menuBreakdownCallFrequency // this.menuBreakdownCallFrequency.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] { this.binsToolStripMenuItem6, this.binsToolStripMenuItem11, this.binsToolStripMenuItem21, this.binsToolStripMenuItem31, this.binsToolStripMenuItem41, this.binsToolStripMenuItem51}); this.menuBreakdownCallFrequency.Name = "menuBreakdownCallFrequency"; this.menuBreakdownCallFrequency.Size = new System.Drawing.Size(213, 22); this.menuBreakdownCallFrequency.Text = "Call Frequency"; this.menuBreakdownCallFrequency.ToolTipText = resources.GetString("menuBreakdownCallFrequency.ToolTipText"); // // binsToolStripMenuItem6 // this.binsToolStripMenuItem6.Name = "binsToolStripMenuItem6"; this.binsToolStripMenuItem6.Size = new System.Drawing.Size(111, 22); this.binsToolStripMenuItem6.Text = "6 bins"; this.binsToolStripMenuItem6.ToolTipText = "Breaks down the calls based on how many times the target function has been called" + ". eg. [0 to 5 calls], [6 to 10 calls], [11 to 15 calls], etc."; this.binsToolStripMenuItem6.Click += new System.EventHandler(this.binsToolStripMenuItem6_Click); // // binsToolStripMenuItem11 // this.binsToolStripMenuItem11.Name = "binsToolStripMenuItem11"; this.binsToolStripMenuItem11.Size = new System.Drawing.Size(111, 22); this.binsToolStripMenuItem11.Text = "11 bins"; this.binsToolStripMenuItem11.ToolTipText = "Breaks down the calls based on how many times the target function has been called" + ". eg. [0 to 5 calls], [6 to 10 calls], [11 to 15 calls], etc."; this.binsToolStripMenuItem11.Click += new System.EventHandler(this.binsToolStripMenuItem11_Click); // // binsToolStripMenuItem21 // this.binsToolStripMenuItem21.Name = "binsToolStripMenuItem21"; this.binsToolStripMenuItem21.Size = new System.Drawing.Size(111, 22); this.binsToolStripMenuItem21.Text = "21 bins"; this.binsToolStripMenuItem21.ToolTipText = "Breaks down the calls based on how many times the target function has been called" + ". eg. [0 to 5 calls], [6 to 10 calls], [11 to 15 calls], etc."; this.binsToolStripMenuItem21.Click += new System.EventHandler(this.binsToolStripMenuItem21_Click); // // binsToolStripMenuItem31 // this.binsToolStripMenuItem31.Name = "binsToolStripMenuItem31"; this.binsToolStripMenuItem31.Size = new System.Drawing.Size(111, 22); this.binsToolStripMenuItem31.Text = "31 bins"; this.binsToolStripMenuItem31.ToolTipText = "Breaks down the calls based on how many times the target function has been called" + ". eg. [0 to 5 calls], [6 to 10 calls], [11 to 15 calls], etc."; this.binsToolStripMenuItem31.Click += new System.EventHandler(this.binsToolStripMenuItem31_Click); // // binsToolStripMenuItem41 // this.binsToolStripMenuItem41.Name = "binsToolStripMenuItem41"; this.binsToolStripMenuItem41.Size = new System.Drawing.Size(111, 22); this.binsToolStripMenuItem41.Text = "41 bins"; this.binsToolStripMenuItem41.ToolTipText = "Breaks down the calls based on how many times the target function has been called" + ". eg. [0 to 5 calls], [6 to 10 calls], [11 to 15 calls], etc."; this.binsToolStripMenuItem41.Click += new System.EventHandler(this.binsToolStripMenuItem41_Click); // // binsToolStripMenuItem51 // this.binsToolStripMenuItem51.Name = "binsToolStripMenuItem51"; this.binsToolStripMenuItem51.Size = new System.Drawing.Size(111, 22); this.binsToolStripMenuItem51.Text = "51 bins"; this.binsToolStripMenuItem51.ToolTipText = "Breaks down the calls based on how many times the target function has been called" + ". eg. [0 to 5 calls], [6 to 10 calls], [11 to 15 calls], etc."; this.binsToolStripMenuItem51.Click += new System.EventHandler(this.binsToolStripMenuItem51_Click); // // addPToolStripMenuItem // this.addPToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] { this.moduleToolStripMenuItem1, this.menuAddPlotIntermodular, this.menuAddPlotIntramodular, this.menuAddPlotHasString, this.menuAddPlotFromFilter}); this.addPToolStripMenuItem.Name = "addPToolStripMenuItem"; this.addPToolStripMenuItem.Size = new System.Drawing.Size(163, 22); this.addPToolStripMenuItem.Text = "Add Plot"; // // moduleToolStripMenuItem1 // this.moduleToolStripMenuItem1.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] { this.itemToolStripMenuItem}); this.moduleToolStripMenuItem1.Name = "moduleToolStripMenuItem1"; this.moduleToolStripMenuItem1.Size = new System.Drawing.Size(185, 22); this.moduleToolStripMenuItem1.Text = "Destination Module"; this.moduleToolStripMenuItem1.DropDownOpening += new System.EventHandler(this.moduleToolStripMenuItem1_DropDownOpening); // // itemToolStripMenuItem // this.itemToolStripMenuItem.Name = "itemToolStripMenuItem"; this.itemToolStripMenuItem.Size = new System.Drawing.Size(98, 22); this.itemToolStripMenuItem.Text = "item"; // // menuAddPlotIntermodular // this.menuAddPlotIntermodular.Name = "menuAddPlotIntermodular"; this.menuAddPlotIntermodular.Size = new System.Drawing.Size(185, 22); this.menuAddPlotIntermodular.Tag = ""; this.menuAddPlotIntermodular.Text = "Intermodular Calls"; this.menuAddPlotIntermodular.ToolTipText = "Adds a plot for intermodular calls. These are calls between loaded libraries."; this.menuAddPlotIntermodular.Click += new System.EventHandler(this.menuAddPlotIntermodular_Click); // // menuAddPlotIntramodular // this.menuAddPlotIntramodular.Name = "menuAddPlotIntramodular"; this.menuAddPlotIntramodular.Size = new System.Drawing.Size(185, 22); this.menuAddPlotIntramodular.Tag = ""; this.menuAddPlotIntramodular.Text = "Intramodular Calls"; this.menuAddPlotIntramodular.ToolTipText = "Adds a plot for intramodular calls. These are calls from a module to itself."; this.menuAddPlotIntramodular.Click += new System.EventHandler(this.menuAddPlotIntramodular_Click); // // menuAddPlotHasString // this.menuAddPlotHasString.Name = "menuAddPlotHasString"; this.menuAddPlotHasString.Size = new System.Drawing.Size(185, 22); this.menuAddPlotHasString.Tag = ""; this.menuAddPlotHasString.Text = "Has String Argument"; this.menuAddPlotHasString.ToolTipText = "Adds a plot for calls that included a string argument."; this.menuAddPlotHasString.Click += new System.EventHandler(this.menuAddPlotHasString_Click); // // menuAddPlotFromFilter // this.menuAddPlotFromFilter.Name = "menuAddPlotFromFilter"; this.menuAddPlotFromFilter.Size = new System.Drawing.Size(185, 22); this.menuAddPlotFromFilter.Tag = ""; this.menuAddPlotFromFilter.Text = "Custom Filter"; this.menuAddPlotFromFilter.ToolTipText = "Allows you to create a custom plot by using the Filter menu to select the options" + "."; this.menuAddPlotFromFilter.Click += new System.EventHandler(this.menuAddPlotFromFilter_Click); // // menuRemoveAllPlots // this.menuRemoveAllPlots.Name = "menuRemoveAllPlots"; this.menuRemoveAllPlots.Size = new System.Drawing.Size(163, 22); this.menuRemoveAllPlots.Text = "Remove All Plots"; this.menuRemoveAllPlots.Click += new System.EventHandler(this.menuRemoveAllPlots_Click); // // toolStripSeparator15 // this.toolStripSeparator15.Name = "toolStripSeparator15"; this.toolStripSeparator15.Size = new System.Drawing.Size(160, 6); // // enableStartRecording // this.enableStartRecording.Interval = 2000; this.enableStartRecording.Tick += new System.EventHandler(this.enableStartRecording_Tick); // // dataGridViewTextBoxColumn1 // this.dataGridViewTextBoxColumn1.HeaderText = "Call Number"; this.dataGridViewTextBoxColumn1.Name = "dataGridViewTextBoxColumn1"; this.dataGridViewTextBoxColumn1.Width = 50; // // dataGridViewTextBoxColumn2 // this.dataGridViewTextBoxColumn2.HeaderText = "Source"; this.dataGridViewTextBoxColumn2.Name = "dataGridViewTextBoxColumn2"; this.dataGridViewTextBoxColumn2.Width = 300; // // dataGridViewTextBoxColumn3 // this.dataGridViewTextBoxColumn3.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.Fill; this.dataGridViewTextBoxColumn3.HeaderText = "Destination"; this.dataGridViewTextBoxColumn3.Name = "dataGridViewTextBoxColumn3"; // // controlVisPlayBar // this.controlVisPlayBar.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this.controlVisPlayBar.Location = new System.Drawing.Point(2, 800); this.controlVisPlayBar.Name = "controlVisPlayBar"; this.controlVisPlayBar.Size = new System.Drawing.Size(1055, 50); this.controlVisPlayBar.TabIndex = 2; this.controlVisPlayBar.UpdateRate = 10; // // FunctionListViewer // this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.Controls.Add(this.splitContainerFunctionsPlaybar); this.Controls.Add(this.toolStrip1); this.Name = "FunctionListViewer"; this.Size = new System.Drawing.Size(1062, 686); this.toolStrip1.ResumeLayout(false); this.toolStrip1.PerformLayout(); this.contextMenuFunctions.ResumeLayout(false); this.contextMenuStripCalls.ResumeLayout(false); this.splitContainerFunctionsPlaybar.Panel1.ResumeLayout(false); this.splitContainerFunctionsPlaybar.Panel2.ResumeLayout(false); this.splitContainerFunctionsPlaybar.ResumeLayout(false); this.splitContainer1.Panel1.ResumeLayout(false); this.splitContainer1.Panel2.ResumeLayout(false); this.splitContainer1.ResumeLayout(false); this.tabControlFunctionsCalls.ResumeLayout(false); this.tabPageFunctionList.ResumeLayout(false); ((System.ComponentModel.ISupportInitialize)(this.dataGridFunctions)).EndInit(); this.tabPageCallList.ResumeLayout(false); this.splitContainer2.Panel1.ResumeLayout(false); this.splitContainer2.Panel2.ResumeLayout(false); this.splitContainer2.ResumeLayout(false); ((System.ComponentModel.ISupportInitialize)(this.dataGridCalls)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.dataGridCallArguments)).EndInit(); this.contextMenuPlaybar.ResumeLayout(false); this.ResumeLayout(false); this.PerformLayout(); }
public virtual void AddStandardItems() { // // Create items // MoveFirstItem = new ToolStripButton(); MovePreviousItem = new ToolStripButton(); MoveNextItem = new ToolStripButton(); MoveLastItem = new ToolStripButton(); PositionItem = new ToolStripTextBox(); CountItem = new ToolStripLabel(); AddNewItem = new ToolStripButton(); DeleteItem = new ToolStripButton(); ToolStripSeparator separator1 = new ToolStripSeparator(); ToolStripSeparator separator2 = new ToolStripSeparator(); ToolStripSeparator separator3 = new ToolStripSeparator(); // // Set up strings // // Default to lowercase for null name, because C# dev is more likely to create controls programmatically than // vb dev. char ch = string.IsNullOrEmpty(Name) || char.IsLower(Name[0]) ? 'b' : 'B'; MoveFirstItem.Name = ch + "indingNavigatorMoveFirstItem"; MovePreviousItem.Name = ch + "indingNavigatorMovePreviousItem"; MoveNextItem.Name = ch + "indingNavigatorMoveNextItem"; MoveLastItem.Name = ch + "indingNavigatorMoveLastItem"; PositionItem.Name = ch + "indingNavigatorPositionItem"; CountItem.Name = ch + "indingNavigatorCountItem"; AddNewItem.Name = ch + "indingNavigatorAddNewItem"; DeleteItem.Name = ch + "indingNavigatorDeleteItem"; separator1.Name = ch + "indingNavigatorSeparator"; separator2.Name = ch + "indingNavigatorSeparator"; separator3.Name = ch + "indingNavigatorSeparator"; MoveFirstItem.Text = SR.BindingNavigatorMoveFirstItemText; MovePreviousItem.Text = SR.BindingNavigatorMovePreviousItemText; MoveNextItem.Text = SR.BindingNavigatorMoveNextItemText; MoveLastItem.Text = SR.BindingNavigatorMoveLastItemText; AddNewItem.Text = SR.BindingNavigatorAddNewItemText; DeleteItem.Text = SR.BindingNavigatorDeleteItemText; CountItem.ToolTipText = SR.BindingNavigatorCountItemTip; PositionItem.ToolTipText = SR.BindingNavigatorPositionItemTip; CountItem.AutoToolTip = false; PositionItem.AutoToolTip = false; PositionItem.AccessibleName = SR.BindingNavigatorPositionAccessibleName; // // Set up images // Bitmap moveFirstImage = DpiHelper.GetBitmapFromIcon(typeof(BindingNavigator), "BindingNavigator.MoveFirst"); Bitmap movePreviousImage = DpiHelper.GetBitmapFromIcon(typeof(BindingNavigator), "BindingNavigator.MovePrevious"); Bitmap moveNextImage = DpiHelper.GetBitmapFromIcon(typeof(BindingNavigator), "BindingNavigator.MoveNext"); Bitmap moveLastImage = DpiHelper.GetBitmapFromIcon(typeof(BindingNavigator), "BindingNavigator.MoveLast"); Bitmap addNewImage = DpiHelper.GetBitmapFromIcon(typeof(BindingNavigator), "BindingNavigator.AddNew"); Bitmap deleteImage = DpiHelper.GetBitmapFromIcon(typeof(BindingNavigator), "BindingNavigator.Delete"); MoveFirstItem.Image = moveFirstImage; MovePreviousItem.Image = movePreviousImage; MoveNextItem.Image = moveNextImage; MoveLastItem.Image = moveLastImage; AddNewItem.Image = addNewImage; DeleteItem.Image = deleteImage; MoveFirstItem.RightToLeftAutoMirrorImage = true; MovePreviousItem.RightToLeftAutoMirrorImage = true; MoveNextItem.RightToLeftAutoMirrorImage = true; MoveLastItem.RightToLeftAutoMirrorImage = true; AddNewItem.RightToLeftAutoMirrorImage = true; DeleteItem.RightToLeftAutoMirrorImage = true; MoveFirstItem.DisplayStyle = ToolStripItemDisplayStyle.Image; MovePreviousItem.DisplayStyle = ToolStripItemDisplayStyle.Image; MoveNextItem.DisplayStyle = ToolStripItemDisplayStyle.Image; MoveLastItem.DisplayStyle = ToolStripItemDisplayStyle.Image; AddNewItem.DisplayStyle = ToolStripItemDisplayStyle.Image; DeleteItem.DisplayStyle = ToolStripItemDisplayStyle.Image; // // Set other random properties // PositionItem.AutoSize = false; PositionItem.Width = 50; // // Add items to strip // Items.AddRange(new ToolStripItem[] { MoveFirstItem, MovePreviousItem, separator1, PositionItem, CountItem, separator2, MoveNextItem, MoveLastItem, separator3, AddNewItem, DeleteItem, }); }
/// <summary> /// Create and initialize menu. /// </summary> private void InitializeMenu() { this.menuStrip = new System.Windows.Forms.MenuStrip(); this.solutionProgressToolStripMenuItem = new System.Windows.Forms.ToolStripTextBox(); this.runToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.dataForChartToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.fitnessToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.depthOfTheSolutionTreeToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.tPToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.tNToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.fnToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.fPToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.accuracyToolStripMenuItem = new ToolStripMenuItem(); this.menuStrip.SuspendLayout(); // // menuStrip // this.menuStrip.AutoSize = false; this.menuStrip.BackColor = System.Drawing.SystemColors.ScrollBar; this.menuStrip.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { this.solutionProgressToolStripMenuItem, this.runToolStripMenuItem, this.dataForChartToolStripMenuItem }); this.menuStrip.Location = new System.Drawing.Point(0, 0); this.menuStrip.Name = "menuStrip"; this.menuStrip.Size = new System.Drawing.Size(1012, 31); this.menuStrip.TabIndex = 21; this.menuStrip.Text = "Menu"; // // solutionProgressToolStripMenuItem // this.solutionProgressToolStripMenuItem.AccessibleRole = System.Windows.Forms.AccessibleRole.Text; this.solutionProgressToolStripMenuItem.BackColor = System.Drawing.SystemColors.ScrollBar; this.solutionProgressToolStripMenuItem.BorderStyle = System.Windows.Forms.BorderStyle.None; this.solutionProgressToolStripMenuItem.Font = new System.Drawing.Font("Source Sans Pro Semibold", 9.749999F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.solutionProgressToolStripMenuItem.Name = "solutionProgressToolStripMenuItem"; this.solutionProgressToolStripMenuItem.Size = new System.Drawing.Size(145, 27); this.solutionProgressToolStripMenuItem.Text = " Solution progress "; // // runToolStripMenuItem // this.runToolStripMenuItem.Name = "runToolStripMenuItem"; this.runToolStripMenuItem.Size = new System.Drawing.Size(40, 27); this.runToolStripMenuItem.Text = "Run"; this.runToolStripMenuItem.DropDownItemClicked += new System.Windows.Forms.ToolStripItemClickedEventHandler(this.RunToolStripMenuItem_DropDownItemClicked); // // dataForChartToolStripMenuItem // this.dataForChartToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] { this.fitnessToolStripMenuItem, this.depthOfTheSolutionTreeToolStripMenuItem, this.tPToolStripMenuItem, this.tNToolStripMenuItem, this.fnToolStripMenuItem, this.fPToolStripMenuItem, this.accuracyToolStripMenuItem }); this.dataForChartToolStripMenuItem.Name = "dataForChartToolStripMenuItem"; this.dataForChartToolStripMenuItem.Size = new System.Drawing.Size(91, 27); this.dataForChartToolStripMenuItem.Text = "Data for chart"; // // fitnessToolStripMenuItem // this.fitnessToolStripMenuItem.Name = "fitnessToolStripMenuItem"; this.fitnessToolStripMenuItem.Size = new System.Drawing.Size(209, 22); this.fitnessToolStripMenuItem.Text = "Fitness"; this.fitnessToolStripMenuItem.Click += new EventHandler(this.FitnessToolStripMenuItem_Click); // // depthOfTheSolutionTreeToolStripMenuItem // this.depthOfTheSolutionTreeToolStripMenuItem.Name = "depthOfTheSolutionTreeToolStripMenuItem"; this.depthOfTheSolutionTreeToolStripMenuItem.Size = new System.Drawing.Size(209, 22); this.depthOfTheSolutionTreeToolStripMenuItem.Text = "Depth of the solution tree"; this.depthOfTheSolutionTreeToolStripMenuItem.Click += new EventHandler(this.DepthOfTheSolutionTreeToolStripMenuItem_Click); // // tPToolStripMenuItem // this.tPToolStripMenuItem.Name = "tPToolStripMenuItem"; this.tPToolStripMenuItem.Size = new System.Drawing.Size(209, 22); this.tPToolStripMenuItem.Click += new EventHandler(this.TPToolStripMenuItem_Click); this.tPToolStripMenuItem.Text = "TP "; // // tNToolStripMenuItem // this.tNToolStripMenuItem.Name = "tNToolStripMenuItem"; this.tNToolStripMenuItem.Size = new System.Drawing.Size(209, 22); this.tNToolStripMenuItem.Text = "TN"; this.tNToolStripMenuItem.Click += new EventHandler(this.TNToolStripMenuItem_Click); // // fnToolStripMenuItem // this.fnToolStripMenuItem.Name = "fnToolStripMenuItem"; this.fnToolStripMenuItem.Size = new System.Drawing.Size(209, 22); this.fnToolStripMenuItem.Text = "FN"; this.fnToolStripMenuItem.Click += new EventHandler(this.FNToolStripMenuItem_Click); // // fPToolStripMenuItem // this.fPToolStripMenuItem.Name = "fPToolStripMenuItem"; this.fPToolStripMenuItem.Size = new System.Drawing.Size(209, 22); this.fPToolStripMenuItem.Text = "FP"; this.fPToolStripMenuItem.Click += new EventHandler(this.FPToolStripMenuItem_Click); // // accuracyToolStripMenuItem // this.accuracyToolStripMenuItem.Name = "accuracyToolStripMenuItem"; this.accuracyToolStripMenuItem.Size = new System.Drawing.Size(209, 22); this.accuracyToolStripMenuItem.Text = "TN+TP+FN+FP"; this.accuracyToolStripMenuItem.Click += new EventHandler(this.AccuracyToolStripMenuItem_Click); this.Controls.Add(this.menuStrip); this.menuStrip.ResumeLayout(false); this.menuStrip.PerformLayout(); }
public ToolStripTextBoxAccessibleObject(ToolStripTextBox ownerItem) : base(ownerItem) { this.ownerItem = ownerItem; }
public ToolStripTextBoxProvider(SWF.ToolStripTextBox stripTextBox) : base(stripTextBox.TextBox) { }
private void TranslateMe(System.Windows.Forms.ToolStripTextBox tstext) { tstext.Text = TranslateMe(tstext.Text); }
/// <summary> /// Returns an observable sequence wrapping the TextBoxTextAlignChanged event on the ToolStripTextBox instance. /// </summary> /// <param name="instance">The ToolStripTextBox instance to observe.</param> /// <returns>An observable sequence wrapping the TextBoxTextAlignChanged event on the ToolStripTextBox instance.</returns> public static IObservable <EventPattern <EventArgs> > TextBoxTextAlignChangedObservable(this ToolStripTextBox instance) { return(Observable.FromEventPattern <EventHandler, EventArgs>( handler => instance.TextBoxTextAlignChanged += handler, handler => instance.TextBoxTextAlignChanged -= handler)); }
public override void AddStandardItems() { // // Create items // MoveFirstItem = new System.Windows.Forms.ToolStripButton(); MovePreviousItem = new System.Windows.Forms.ToolStripButton(); MoveNextItem = new System.Windows.Forms.ToolStripButton(); MoveLastItem = new System.Windows.Forms.ToolStripButton(); PositionItem = new System.Windows.Forms.ToolStripTextBox(); CountItem = new System.Windows.Forms.ToolStripLabel(); AddNewItem = new System.Windows.Forms.ToolStripButton(); DeleteItem = new System.Windows.Forms.ToolStripButton(); PageSizeItem = new System.Windows.Forms.ToolStripTextBox(); ToolStripSeparator separator1 = new System.Windows.Forms.ToolStripSeparator(); ToolStripSeparator separator2 = new System.Windows.Forms.ToolStripSeparator(); ToolStripSeparator separator3 = new System.Windows.Forms.ToolStripSeparator(); // // Set up strings // // Hacky workaround for VSWhidbey 407243 // Default to lowercase for null name, because C# dev is more likely to create controls programmatically than // vb dev. GripStyle = ToolStripGripStyle.Hidden; char ch = string.IsNullOrEmpty(Name) || char.IsLower(Name[0]) ? 'b' : 'B'; MoveFirstItem.Name = ch + "indingNavigatorMoveFirstItem"; MovePreviousItem.Name = ch + "indingNavigatorMovePreviousItem"; MoveNextItem.Name = ch + "indingNavigatorMoveNextItem"; MoveLastItem.Name = ch + "indingNavigatorMoveLastItem"; PositionItem.Name = ch + "indingNavigatorPositionItem"; CountItem.Name = ch + "indingNavigatorCountItem"; PageSizeItem.Name = ch + "indingNavigatorPageSizeItem"; AddNewItem.Name = ch + "indingNavigatorAddNewItem"; DeleteItem.Name = ch + "indingNavigatorDeleteItem"; separator1.Name = ch + "indingNavigatorSeparator"; separator2.Name = ch + "indingNavigatorSeparator"; separator3.Name = ch + "indingNavigatorSeparator"; MoveFirstItem.Text = "第一页"; MovePreviousItem.Text = "上一页"; MoveNextItem.Text = "下一页"; MoveLastItem.Text = "最后一页"; AddNewItem.Text = "添加"; CountItem.ToolTipText = "总页数"; PositionItem.ToolTipText = "当前页"; PageSizeItem.ToolTipText = "每页显示数量"; CountItem.AutoToolTip = false; PositionItem.AutoToolTip = false; PageSizeItem.AutoToolTip = false; PageSizeItem.Text = "100"; PositionItem.AccessibleName = "BindingNavigatorPositionAccessibleName"; // // Set up images // Bitmap moveFirstImage = new Bitmap(typeof(BindingNavigator), "BindingNavigator.MoveFirst.bmp"); Bitmap movePreviousImage = new Bitmap(typeof(BindingNavigator), "BindingNavigator.MovePrevious.bmp"); Bitmap moveNextImage = new Bitmap(typeof(BindingNavigator), "BindingNavigator.MoveNext.bmp"); Bitmap moveLastImage = new Bitmap(typeof(BindingNavigator), "BindingNavigator.MoveLast.bmp"); Bitmap addNewImage = new Bitmap(typeof(BindingNavigator), "BindingNavigator.AddNew.bmp"); Bitmap deleteImage = new Bitmap(typeof(BindingNavigator), "BindingNavigator.Delete.bmp"); moveFirstImage.MakeTransparent(System.Drawing.Color.Magenta); movePreviousImage.MakeTransparent(System.Drawing.Color.Magenta); moveNextImage.MakeTransparent(System.Drawing.Color.Magenta); moveLastImage.MakeTransparent(System.Drawing.Color.Magenta); addNewImage.MakeTransparent(System.Drawing.Color.Magenta); deleteImage.MakeTransparent(System.Drawing.Color.Magenta); MoveFirstItem.Image = moveFirstImage; MovePreviousItem.Image = movePreviousImage; MoveNextItem.Image = moveNextImage; MoveLastItem.Image = moveLastImage; AddNewItem.Image = addNewImage; DeleteItem.Image = deleteImage; MoveFirstItem.RightToLeftAutoMirrorImage = true; MovePreviousItem.RightToLeftAutoMirrorImage = true; MoveNextItem.RightToLeftAutoMirrorImage = true; MoveLastItem.RightToLeftAutoMirrorImage = true; AddNewItem.RightToLeftAutoMirrorImage = true; DeleteItem.RightToLeftAutoMirrorImage = true; MoveFirstItem.DisplayStyle = ToolStripItemDisplayStyle.Image; MovePreviousItem.DisplayStyle = ToolStripItemDisplayStyle.Image; MoveNextItem.DisplayStyle = ToolStripItemDisplayStyle.Image; MoveLastItem.DisplayStyle = ToolStripItemDisplayStyle.Image; AddNewItem.DisplayStyle = ToolStripItemDisplayStyle.Image; DeleteItem.DisplayStyle = ToolStripItemDisplayStyle.Image; // // Set other random properties // PositionItem.AutoSize = false; PositionItem.Width = 50; PageSizeItem.AutoSize = false; PageSizeItem.Width = 50; // // Add items to strip // Items.AddRange(new[] { MoveFirstItem, MovePreviousItem, separator1, PositionItem, CountItem, PageSizeItem, separator2, MoveNextItem, MoveLastItem, separator3, AddNewItem }); }
public override void AddStandardItems() { // // Create items // MoveFirstItem = new System.Windows.Forms.ToolStripButton(); MovePreviousItem = new System.Windows.Forms.ToolStripButton(); MoveNextItem = new System.Windows.Forms.ToolStripButton(); MoveLastItem = new System.Windows.Forms.ToolStripButton(); PositionItem = new System.Windows.Forms.ToolStripTextBox(); CountItem = new System.Windows.Forms.ToolStripLabel(); AddNewItem = new System.Windows.Forms.ToolStripButton(); DeleteItem = new System.Windows.Forms.ToolStripButton(); SaveItem = new System.Windows.Forms.ToolStripButton(); ToolStripSeparator separator1 = new System.Windows.Forms.ToolStripSeparator(); ToolStripSeparator separator2 = new System.Windows.Forms.ToolStripSeparator(); ToolStripSeparator separator3 = new System.Windows.Forms.ToolStripSeparator(); // // Set up strings // // Hacky workaround for VSWhidbey 407243 // Default to lowercase for null name, because C# dev is more likely to create controls programmatically than // vb dev. char ch = string.IsNullOrEmpty(Name) || char.IsLower(Name[0]) ? 'b' : 'B'; MoveFirstItem.Name = ch + "indingNavigatorMoveFirstItem"; MovePreviousItem.Name = ch + "indingNavigatorMovePreviousItem"; MoveNextItem.Name = ch + "indingNavigatorMoveNextItem"; MoveLastItem.Name = ch + "indingNavigatorMoveLastItem"; PositionItem.Name = ch + "indingNavigatorPositionItem"; CountItem.Name = ch + "indingNavigatorCountItem"; AddNewItem.Name = ch + "indingNavigatorAddNewItem"; DeleteItem.Name = ch + "indingNavigatorDeleteItem"; SaveItem.Name = ch + "indingNavigatorSaveItem"; separator1.Name = ch + "indingNavigatorSeparator"; separator2.Name = ch + "indingNavigatorSeparator"; separator3.Name = ch + "indingNavigatorSeparator"; MoveFirstItem.Text = "Iet uz pirmo"; MovePreviousItem.Text = "Iet uz iepriekšējo"; MoveNextItem.Text = "Iet uz nākošo"; MoveLastItem.Text = "Iet uz pēdējo"; AddNewItem.Text = "Jauns"; DeleteItem.Text = "Dzēst"; SaveItem.Text = "Saglabāt"; CountItem.ToolTipText = "Ierakstu skaits"; PositionItem.ToolTipText = "Pašreizējā pozīcija"; CountItem.AutoToolTip = false; PositionItem.AutoToolTip = false; // // Set up images // Bitmap moveFirstImage = new Bitmap(typeof(BindingNavigator), "BindingNavigator.MoveFirst.bmp"); Bitmap movePreviousImage = new Bitmap(typeof(BindingNavigator), "BindingNavigator.MovePrevious.bmp"); Bitmap moveNextImage = new Bitmap(typeof(BindingNavigator), "BindingNavigator.MoveNext.bmp"); Bitmap moveLastImage = new Bitmap(typeof(BindingNavigator), "BindingNavigator.MoveLast.bmp"); Bitmap addNewImage = new Bitmap(typeof(BindingNavigator), "BindingNavigator.AddNew.bmp"); Bitmap deleteImage = new Bitmap(typeof(BindingNavigator), "BindingNavigator.Delete.bmp"); GetSaveImages(); moveFirstImage.MakeTransparent(System.Drawing.Color.Magenta); movePreviousImage.MakeTransparent(System.Drawing.Color.Magenta); moveNextImage.MakeTransparent(System.Drawing.Color.Magenta); moveLastImage.MakeTransparent(System.Drawing.Color.Magenta); addNewImage.MakeTransparent(System.Drawing.Color.Magenta); deleteImage.MakeTransparent(System.Drawing.Color.Magenta); MoveFirstItem.Image = moveFirstImage; MovePreviousItem.Image = movePreviousImage; MoveNextItem.Image = moveNextImage; MoveLastItem.Image = moveLastImage; AddNewItem.Image = addNewImage; DeleteItem.Image = deleteImage; SaveItem.Image = SaveBlue; MoveFirstItem.RightToLeftAutoMirrorImage = true; MovePreviousItem.RightToLeftAutoMirrorImage = true; MoveNextItem.RightToLeftAutoMirrorImage = true; MoveLastItem.RightToLeftAutoMirrorImage = true; AddNewItem.RightToLeftAutoMirrorImage = true; DeleteItem.RightToLeftAutoMirrorImage = true; MoveFirstItem.DisplayStyle = ToolStripItemDisplayStyle.Image; MovePreviousItem.DisplayStyle = ToolStripItemDisplayStyle.Image; MoveNextItem.DisplayStyle = ToolStripItemDisplayStyle.Image; MoveLastItem.DisplayStyle = ToolStripItemDisplayStyle.Image; AddNewItem.DisplayStyle = ToolStripItemDisplayStyle.ImageAndText; DeleteItem.DisplayStyle = ToolStripItemDisplayStyle.ImageAndText; // // Set other random properties // PositionItem.AutoSize = false; PositionItem.Width = 50; // // Add items to strip // Items.AddRange(new ToolStripItem[] { MoveFirstItem, MovePreviousItem, separator1, PositionItem, CountItem, separator2, MoveNextItem, MoveLastItem, separator3, AddNewItem, DeleteItem, SaveItem }); }
private TabPage TapPageCreate() { DataGridView = new DataGridView() { Location = new Point(513, 0), AllowUserToAddRows = false, RowHeadersWidth = 60, Width = 500, }; if (IAM.n == 2) { DataGridView.Dock = DockStyle.Right; } else { DataGridView.Dock = DockStyle.Fill; } // // BottomValueToolStripMenuItem // this.BottomValueToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem() { Name = "BottomValueToolStripMenuItem", Size = new System.Drawing.Size(223, 22), Text = "Перейти до незалежних координат" }; this.BottomValueToolStripMenuItem.Click += new System.EventHandler(this.BottomValueToolStripMenuItem_Click); this.MinimalDispers = new ToolStripTextBox() { Name = "MinimalDispers", Text = "0" }; // // ReversTransformValueToolStripMenuItem // this.ReversTransformValueToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem() { Name = "ReversTransformValueToolStripMenuItem", Size = new System.Drawing.Size(223, 22), Text = "Зворотньє перетворення", Visible = false }; this.ReversTransformValueToolStripMenuItem.Click += new System.EventHandler(this.ReversTransformValueToolStripMenuItem_Click); // // CorelContextMenuStrip // ContextMenuStrip = new ContextMenuStrip(); DataGridView.ContextMenuStrip = ContextMenuStrip; this.BottomValueToolStripMenuItem.DropDownItems.AddRange(new ToolStripItem[] { this.MinimalDispers, }); this.ContextMenuStrip.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { this.BottomValueToolStripMenuItem, this.ReversTransformValueToolStripMenuItem }); System.Windows.Forms.TabPage tabPagenew = new TabPage(); tabPagenew.Controls.Add(DataGridView); tabPagenew.Location = new System.Drawing.Point(4, 22); tabPagenew.Name = "tabPage3"; tabPagenew.Padding = new System.Windows.Forms.Padding(3); tabPagenew.Size = new System.Drawing.Size(1005, 273); tabPagenew.TabIndex = 0; tabPagenew.Text = "Метод головних компонент"; tabPagenew.UseVisualStyleBackColor = true; tabPagenew.ResumeLayout(false); if (IAM.n == 2) { picture = new PictureBox() { Dock = DockStyle.Left, Width = 513, }; picture.ContextMenuStrip = ContextMenuStrip; tabPagenew.Controls.Add(picture); } return(tabPagenew); }
private void init() { this.txbPage = new System.Windows.Forms.ToolStripTextBox(); this.lblPage = new System.Windows.Forms.ToolStripLabel(); this.lblInfo = new System.Windows.Forms.ToolStripLabel(); this.btnFirst = new System.Windows.Forms.ToolStripButton(); this.btnPre = new System.Windows.Forms.ToolStripButton(); this.btnNext = new System.Windows.Forms.ToolStripButton(); this.btnLast = new System.Windows.Forms.ToolStripButton(); // // toolStrip1 // this.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { this.btnFirst, this.btnPre, this.txbPage, this.lblPage, this.btnNext, this.btnLast, this.lblInfo }); // // txbPage // this.txbPage.AutoSize = false; this.txbPage.Name = "txbPage"; this.txbPage.Size = new System.Drawing.Size(30, 23); // // lblPage // this.lblPage.Name = "lblPage"; this.lblPage.Size = new System.Drawing.Size(27, 23); this.lblPage.Text = "/20"; // // lblInfo // this.lblInfo.Name = "lblInfo"; this.lblInfo.Size = new System.Drawing.Size(12, 23); this.lblInfo.Text = " "; // // btnFirst // this.btnFirst.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image; this.btnFirst.Image = global::RIPP.Lib.Properties.Resources.resultset_first; this.btnFirst.ImageTransparentColor = System.Drawing.Color.Magenta; this.btnFirst.Name = "btnFirst"; this.btnFirst.Size = new System.Drawing.Size(23, 23); this.btnFirst.ToolTipText = "首页"; this.btnFirst.Click += new EventHandler(btnFirst_Click); // // btnPre // this.btnPre.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image; this.btnPre.Image = global::RIPP.Lib.Properties.Resources.resultset_previous; this.btnPre.ImageTransparentColor = System.Drawing.Color.Magenta; this.btnPre.Name = "btnPre"; this.btnPre.Size = new System.Drawing.Size(23, 23); this.btnPre.ToolTipText = "上一页"; this.btnPre.Click += new EventHandler(btnPre_Click); // // btnNext // this.btnNext.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image; this.btnNext.Image = global::RIPP.Lib.Properties.Resources.resultset_next; this.btnNext.ImageTransparentColor = System.Drawing.Color.Magenta; this.btnNext.Name = "btnNext"; this.btnNext.Size = new System.Drawing.Size(23, 23); this.btnNext.Text = "下页"; this.btnNext.Click += new EventHandler(btnNext_Click); // // btnLast // this.btnLast.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image; this.btnLast.Image = global::RIPP.Lib.Properties.Resources.resultset_last; this.btnLast.ImageTransparentColor = System.Drawing.Color.Magenta; this.btnLast.Name = "btnLast"; this.btnLast.Size = new System.Drawing.Size(23, 23); this.btnLast.ToolTipText = "最后一页"; this.btnLast.Click += new EventHandler(btnLast_Click); }