本文整理汇总了C#中System.Windows.Forms.ContextMenuStrip类的典型用法代码示例。如果您正苦于以下问题:C# System.Windows.Forms.ContextMenuStrip类的具体用法?C# System.Windows.Forms.ContextMenuStrip怎么用?C# System.Windows.Forms.ContextMenuStrip使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
System.Windows.Forms.ContextMenuStrip类属于命名空间,在下文中一共展示了System.Windows.Forms.ContextMenuStrip类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: InitializeComponent
private void InitializeComponent()
{
this.components = new System.ComponentModel.Container();
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(NotifyIconWrapper));
this.NotifyIcon = new System.Windows.Forms.NotifyIcon(this.components);
this.ContextMenuStrip = new System.Windows.Forms.ContextMenuStrip(this.components);
this.VisibleMenu = new System.Windows.Forms.ToolStripMenuItem();
this.CollapsedMenu = new System.Windows.Forms.ToolStripMenuItem();
this.ExitMenu = new System.Windows.Forms.ToolStripMenuItem();
this.Separator = new System.Windows.Forms.ToolStripSeparator();
this.ContextMenuStrip.SuspendLayout();
//
// NotifyIcon
//
this.NotifyIcon.ContextMenuStrip = this.ContextMenuStrip;
this.NotifyIcon.Icon = ((System.Drawing.Icon)(resources.GetObject("NotifyIcon.Icon")));
this.NotifyIcon.Text = "FluidLauncher";
this.NotifyIcon.Visible = true;
//
// ContextMenuStrip
//
this.ContextMenuStrip.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
this.VisibleMenu,
this.CollapsedMenu,
this.Separator,
this.ExitMenu});
this.ContextMenuStrip.Name = "ContextMenuStrip";
this.ContextMenuStrip.Size = new System.Drawing.Size(111, 70);
//
// VisibleMenu
//
this.VisibleMenu.Name = "VisibleMenu";
this.VisibleMenu.Size = new System.Drawing.Size(110, 22);
this.VisibleMenu.Text = "表示";
//
// CollapsedMenu
//
this.CollapsedMenu.Name = "CollapsedMenu";
this.CollapsedMenu.Size = new System.Drawing.Size(110, 22);
this.CollapsedMenu.Text = "非表示";
//
// ExitMenu
//
this.ExitMenu.Name = "ExitMenu";
this.ExitMenu.Size = new System.Drawing.Size(110, 22);
this.ExitMenu.Text = "終了";
//
// Separator
//
this.Separator.Name = "Separator";
this.Separator.Size = new System.Drawing.Size(6, 6);
this.ContextMenuStrip.ResumeLayout(false);
}
示例2: Initialize
private void Initialize()
{
Models.Command.Instance.Initialize(@"dic.txt");
var menu = new System.Windows.Forms.ContextMenuStrip();
{
var configItem = new System.Windows.Forms.ToolStripMenuItem();
configItem.Text = "設定";
configItem.Click += configItem_Click;
menu.Items.Add(configItem);
var exitItem = new System.Windows.Forms.ToolStripMenuItem();
exitItem.Text = "終了";
exitItem.Click += exitItem_Click;
menu.Items.Add(exitItem);
}
_notifyIcon.ContextMenuStrip = menu;
_notifyIcon.Icon = new System.Drawing.Icon(@"test.ico");
_keyHook.Hook += _keyHook_Hook;
_mainWindow = new Views.MainWindow();
_notifyIcon.Visible = true;
}
示例3: InitializeComponent
/// <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();
this.xmlContextMenu = new System.Windows.Forms.ContextMenuStrip(this.components);
this.SuspendLayout();
//
// xmlContextMenu
//
this.xmlContextMenu.Name = "XmlContextMenu";
this.xmlContextMenu.Size = new System.Drawing.Size(61, 4);
//
// ZTreeView
//
this.AllowDrop = true;
this.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.HideSelection = false;
this.Location = new System.Drawing.Point(4, 30);
this.AfterLabelEdit += new System.Windows.Forms.NodeLabelEditEventHandler(this.TreeViewEditor_AfterLabelEdit);
this.DragDrop += new System.Windows.Forms.DragEventHandler(this.TreeViewEditor_DragDrop);
this.AfterSelect += new System.Windows.Forms.TreeViewEventHandler(this.TreeViewEditor_AfterSelectNode);
this.Leave += new System.EventHandler(this.TreeViewEditor_Leave);
this.MouseDown += new System.Windows.Forms.MouseEventHandler(this.TreeViewEditor_MouseDown);
this.DragEnter += new System.Windows.Forms.DragEventHandler(this.TreeViewEditor_DragEnter);
this.KeyUp += new System.Windows.Forms.KeyEventHandler(this.TreeViewEditor_KeyUp);
this.NodeMouseClick += new System.Windows.Forms.TreeNodeMouseClickEventHandler(this.TreeViewEditor_NodeMouseClick);
this.BeforeLabelEdit += new System.Windows.Forms.NodeLabelEditEventHandler(this.TreeViewEditor_BeforeLabelEdit);
this.ItemDrag += new System.Windows.Forms.ItemDragEventHandler(this.TreeViewEditor_ItemDrag);
this.DragOver += new System.Windows.Forms.DragEventHandler(this.TreeViewEditor_DragOver);
this.ResumeLayout(false);
}
示例4: InitializeComponent
/// <summary>Form stuff...</summary>
private void InitializeComponent( )
{
this.mnuDuplicateTab = new System.Windows.Forms.ToolStripMenuItem( );
this.mnuCloseTab = new System.Windows.Forms.ToolStripMenuItem( );
this.tabContextMenu = new System.Windows.Forms.ContextMenuStrip( );
this.SuspendLayout( );
//
// mnuDuplicateTab
//
this.mnuDuplicateTab.Image = global::MongoConsole.Properties.Resources.document_copy;
this.mnuDuplicateTab.Name = "mnuDuplicateTab";
this.mnuDuplicateTab.Size = new System.Drawing.Size( 152, 22 );
this.mnuDuplicateTab.Text = "Duplicate";
//
// mnuCloseTab
//
this.mnuCloseTab.Image = global::MongoConsole.Properties.Resources.cross_octagon;
this.mnuCloseTab.Name = "mnuCloseTab";
this.mnuCloseTab.Size = new System.Drawing.Size( 152, 22 );
this.mnuCloseTab.Text = "Close";
this.ResumeLayout( false );
//
// tabContextMenu
//
this.tabContextMenu.Items.AddRange( new System.Windows.Forms.ToolStripItem[] {
this.mnuDuplicateTab,
this.mnuCloseTab} );
this.tabContextMenu.Name = "tabContextMenu";
this.tabContextMenu.Size = new System.Drawing.Size( 153, 70 );
}
示例5: InitializeComponent
/// <summary>
/// Обязательный метод для поддержки конструктора - не изменяйте
/// содержимое данного метода при помощи редактора кода.
/// </summary>
private void InitializeComponent()
{
this.components = new System.ComponentModel.Container();
this.contextMenuStrip = new System.Windows.Forms.ContextMenuStrip(this.components);
this.настройкаЕлементовToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.contextMenuStrip.SuspendLayout();
this.SuspendLayout();
//
// contextMenuStrip
//
this.contextMenuStrip.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
this.настройкаЕлементовToolStripMenuItem});
this.contextMenuStrip.Name = "contextMenuStrip";
this.contextMenuStrip.Size = new System.Drawing.Size(196, 48);
//
// настройкаЕлементовToolStripMenuItem
//
this.настройкаЕлементовToolStripMenuItem.Name = "настройкаЕлементовToolStripMenuItem";
this.настройкаЕлементовToolStripMenuItem.Size = new System.Drawing.Size(195, 22);
this.настройкаЕлементовToolStripMenuItem.Text = "Настройка элементов";
this.настройкаЕлементовToolStripMenuItem.Click += new System.EventHandler(this.настройкаЕлементовToolStripMenuItem_Click);
//
// NumericTable
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ContextMenuStrip = this.contextMenuStrip;
this.Name = "NumericTable";
this.Size = new System.Drawing.Size(384, 355);
this.contextMenuStrip.ResumeLayout(false);
this.ResumeLayout(false);
}
示例6: InitializeComponent
/// <summary>
/// 设计器支持所需的方法 - 不要
/// 使用代码编辑器修改此方法的内容。
/// </summary>
private void InitializeComponent()
{
this.components = new System.ComponentModel.Container();
this.contextMenuStrip1 = new System.Windows.Forms.ContextMenuStrip(this.components);
this.MenuItemStartRecord = new System.Windows.Forms.ToolStripMenuItem();
this.MenuItemStopRecord = new System.Windows.Forms.ToolStripMenuItem();
this.DVRCruise = new System.Windows.Forms.ToolStripMenuItem();
this.PreSetCruise = new System.Windows.Forms.ToolStripMenuItem();
this.Close = new System.Windows.Forms.ToolStripMenuItem();
this.contextMenuStrip1.SuspendLayout();
this.SuspendLayout();
//
// contextMenuStrip1
//
this.contextMenuStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
this.MenuItemStartRecord,
this.MenuItemStopRecord,
this.DVRCruise,
this.PreSetCruise,
this.Close});
this.contextMenuStrip1.Name = "contextMenuStrip1";
this.contextMenuStrip1.Size = new System.Drawing.Size(131, 114);
//
// MenuItemStartRecord
//
this.MenuItemStartRecord.Name = "MenuItemStartRecord";
this.MenuItemStartRecord.Size = new System.Drawing.Size(130, 22);
this.MenuItemStartRecord.Text = "开始录像";
//
// MenuItemStopRecord
//
this.MenuItemStopRecord.Enabled = false;
this.MenuItemStopRecord.Name = "MenuItemStopRecord";
this.MenuItemStopRecord.Size = new System.Drawing.Size(130, 22);
this.MenuItemStopRecord.Text = "停止录像";
//
// DVRCruise
//
this.DVRCruise.Name = "DVRCruise";
this.DVRCruise.Size = new System.Drawing.Size(130, 22);
this.DVRCruise.Text = "DVR轮询";
//
// PreSetCruise
//
this.PreSetCruise.Name = "PreSetCruise";
this.PreSetCruise.Size = new System.Drawing.Size(130, 22);
this.PreSetCruise.Text = "预置位轮询";
//
// Close
//
this.Close.Name = "Close";
this.Close.Size = new System.Drawing.Size(130, 22);
this.Close.Text = "关闭";
//
// ViedoPanel
//
this.MouseMove += new System.Windows.Forms.MouseEventHandler(this.ViedoPanel_MouseMove);
this.contextMenuStrip1.ResumeLayout(false);
this.ResumeLayout(false);
}
示例7: SqlAutoComplete
//***************************************************************************
// Public Properties
//
#endregion
#region Class Constructors
//***************************************************************************
// Class Constructors
//
public SqlAutoComplete(System.ComponentModel.IContainer parent)
{
this._parent = parent;
this._mnuStrip = new System.Windows.Forms.ContextMenuStrip(parent);
this._mnuStrip.AutoClose = false;
this._mnuStrip.ItemClicked += new System.Windows.Forms.ToolStripItemClickedEventHandler(_mnuStrip_ItemClicked);
}
示例8: InitializeComponent
/// <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(SplitButton));
this.SplitButtonDropDown = new System.Windows.Forms.ContextMenuStrip(this.components);
this.SplitButtonImages = new System.Windows.Forms.ImageList(this.components);
this.SuspendLayout();
//
// SplitButtonDropDown
//
this.SplitButtonDropDown.Name = "SplitButtonDropDown";
this.SplitButtonDropDown.Size = new System.Drawing.Size(61, 4);
this.SplitButtonDropDown.Closed += new System.Windows.Forms.ToolStripDropDownClosedEventHandler(this.SplitButtonDropDownClosed);
this.SplitButtonDropDown.Opening += new System.ComponentModel.CancelEventHandler(this.SplitButtonDropDownOpening);
this.SplitButtonDropDown.ItemClicked += new System.Windows.Forms.ToolStripItemClickedEventHandler(this.SplitButtonDropDownItemClicked);
//
// SplitButtonImages
//
this.SplitButtonImages.ImageStream = ((System.Windows.Forms.ImageListStreamer)(resources.GetObject("SplitButtonImages.ImageStream")));
this.SplitButtonImages.TransparentColor = System.Drawing.Color.Transparent;
this.SplitButtonImages.Images.SetKeyName(0, "Normal");
this.SplitButtonImages.Images.SetKeyName(1, "Hover");
this.SplitButtonImages.Images.SetKeyName(2, "Clicked");
this.SplitButtonImages.Images.SetKeyName(3, "Disabled");
//
// SplitButton
//
this.ContextMenuStrip = this.SplitButtonDropDown;
this.ImageAlign = System.Drawing.ContentAlignment.MiddleRight;
this.ImageKey = "Normal";
this.ImageList = this.SplitButtonImages;
this.ResumeLayout(false);
}
示例9: InitializeComponent
/// <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(ControlProperties));
this.contextMenuStrip = new System.Windows.Forms.ContextMenuStrip(this.components);
this.copyToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.listViewProperties = new System.Windows.Forms.ListView();
this.columnHeaderProperty = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
this.columnHeaderValue = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
this.contextMenuStrip.SuspendLayout();
this.SuspendLayout();
//
// contextMenuStrip
//
this.contextMenuStrip.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
this.copyToolStripMenuItem});
this.contextMenuStrip.Name = "contextMenuStrip";
resources.ApplyResources(this.contextMenuStrip, "contextMenuStrip");
this.contextMenuStrip.Opening += new System.ComponentModel.CancelEventHandler(this.contextMenuStrip_Opening);
//
// copyToolStripMenuItem
//
this.copyToolStripMenuItem.Name = "copyToolStripMenuItem";
resources.ApplyResources(this.copyToolStripMenuItem, "copyToolStripMenuItem");
this.copyToolStripMenuItem.Click += new System.EventHandler(this.copyToolStripMenuItem_Click);
//
// listViewProperties
//
this.listViewProperties.Columns.AddRange(new System.Windows.Forms.ColumnHeader[] {
this.columnHeaderProperty,
this.columnHeaderValue});
this.listViewProperties.ContextMenuStrip = this.contextMenuStrip;
resources.ApplyResources(this.listViewProperties, "listViewProperties");
this.listViewProperties.FullRowSelect = true;
this.listViewProperties.GridLines = true;
this.listViewProperties.HeaderStyle = System.Windows.Forms.ColumnHeaderStyle.Nonclickable;
this.listViewProperties.MultiSelect = false;
this.listViewProperties.Name = "listViewProperties";
this.listViewProperties.ShowItemToolTips = true;
this.listViewProperties.UseCompatibleStateImageBehavior = false;
this.listViewProperties.View = System.Windows.Forms.View.Details;
//
// columnHeaderProperty
//
resources.ApplyResources(this.columnHeaderProperty, "columnHeaderProperty");
//
// columnHeaderValue
//
resources.ApplyResources(this.columnHeaderValue, "columnHeaderValue");
//
// ControlProperties
//
resources.ApplyResources(this, "$this");
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.Controls.Add(this.listViewProperties);
this.Name = "ControlProperties";
this.contextMenuStrip.ResumeLayout(false);
this.ResumeLayout(false);
}
示例10: InitializeComponent
/// <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(ControlPartList));
this.contextMenuPart = new System.Windows.Forms.ContextMenuStrip(this.components);
this.renameToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.deleteToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.toolTipNamespace = new System.Windows.Forms.ToolTip(this.components);
this.labelDataSource = new System.Windows.Forms.Label();
this.comboBoxPartList = new System.Windows.Forms.ComboBox();
this.contextMenuPart.SuspendLayout();
this.SuspendLayout();
//
// contextMenuPart
//
resources.ApplyResources(this.contextMenuPart, "contextMenuPart");
this.contextMenuPart.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
this.renameToolStripMenuItem,
this.deleteToolStripMenuItem});
this.contextMenuPart.Name = "contextMenuPart";
this.contextMenuPart.Opening += new System.ComponentModel.CancelEventHandler(this.contextMenuPart_Opening);
//
// renameToolStripMenuItem
//
this.renameToolStripMenuItem.Name = "renameToolStripMenuItem";
resources.ApplyResources(this.renameToolStripMenuItem, "renameToolStripMenuItem");
this.renameToolStripMenuItem.Click += new System.EventHandler(this.renameToolStripMenuItem_Click);
//
// deleteToolStripMenuItem
//
this.deleteToolStripMenuItem.Name = "deleteToolStripMenuItem";
resources.ApplyResources(this.deleteToolStripMenuItem, "deleteToolStripMenuItem");
this.deleteToolStripMenuItem.Click += new System.EventHandler(this.deleteToolStripMenuItem_Click);
//
// labelDataSource
//
resources.ApplyResources(this.labelDataSource, "labelDataSource");
this.labelDataSource.Name = "labelDataSource";
//
// comboBoxPartList
//
resources.ApplyResources(this.comboBoxPartList, "comboBoxPartList");
this.comboBoxPartList.ContextMenuStrip = this.contextMenuPart;
this.comboBoxPartList.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
this.comboBoxPartList.FormattingEnabled = true;
this.comboBoxPartList.Name = "comboBoxPartList";
this.comboBoxPartList.SelectedIndexChanged += new System.EventHandler(this.comboBoxPartList_SelectedIndexChanged);
this.comboBoxPartList.MouseHover += new System.EventHandler(this.comboBoxPartList_MouseHover);
//
// ControlPartList
//
resources.ApplyResources(this, "$this");
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.Controls.Add(this.comboBoxPartList);
this.Controls.Add(this.labelDataSource);
this.Name = "ControlPartList";
this.contextMenuPart.ResumeLayout(false);
this.ResumeLayout(false);
}
示例11: ChampionCollection
public ChampionCollection(string name, string role, System.Windows.Forms.ContextMenuStrip contextMenu, System.Windows.Forms.Panel controlPanel, Form1 mainForm)
{
_name = name;
_role = role;
_listOfChampions = new List<ChampionContainer>();
_controlPanel = controlPanel;
_contextMenu = contextMenu;
_mainForm = mainForm;
}
示例12: InitializeComponent
/// <summary>
/// 设计器支持所需的方法 - 不要
/// 使用代码编辑器修改此方法的内容。
/// </summary>
private void InitializeComponent()
{
this.components = new System.ComponentModel.Container();
this.panel_face = new System.Windows.Forms.Panel();
this.contextMenuStrip1 = new System.Windows.Forms.ContextMenuStrip(this.components);
this.Tool_Ima = new System.Windows.Forms.ToolStripMenuItem();
this.Tool_File = new System.Windows.Forms.ToolStripMenuItem();
this.contextMenuStrip1.SuspendLayout();
this.SuspendLayout();
//
// panel_face
//
this.panel_face.ContextMenuStrip = this.contextMenuStrip1;
this.panel_face.Dock = System.Windows.Forms.DockStyle.Fill;
this.panel_face.Location = new System.Drawing.Point(0, 0);
this.panel_face.Name = "panel_face";
this.panel_face.Size = new System.Drawing.Size(391, 238);
this.panel_face.TabIndex = 0;
this.panel_face.Visible = false;
//
// contextMenuStrip1
//
this.contextMenuStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
this.Tool_Ima,
this.Tool_File});
this.contextMenuStrip1.Name = "contextMenuStrip2";
this.contextMenuStrip1.Size = new System.Drawing.Size(137, 48);
//
// Tool_Ima
//
this.Tool_Ima.Name = "Tool_Ima";
this.Tool_Ima.Size = new System.Drawing.Size(136, 22);
this.Tool_Ima.Tag = "1";
this.Tool_Ima.Text = "拖放图片";
//
// Tool_File
//
this.Tool_File.Name = "Tool_File";
this.Tool_File.Size = new System.Drawing.Size(136, 22);
this.Tool_File.Tag = "2";
this.Tool_File.Text = "拖放文件夹";
//
// Frm_Main
//
this.AccessibleRole = System.Windows.Forms.AccessibleRole.None;
this.AllowDrop = true;
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(391, 238);
this.ContextMenuStrip = this.contextMenuStrip1;
this.Controls.Add(this.panel_face);
this.Name = "Frm_Main";
this.Text = "向窗体中拖放图片并显示";
this.DragEnter += new System.Windows.Forms.DragEventHandler(this.Frm_Main_DragEnter);
this.contextMenuStrip1.ResumeLayout(false);
this.ResumeLayout(false);
}
示例13: InitializeComponent
/// <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(LLFormDoc));
this.toolTip = new System.Windows.Forms.ToolTip(this.components);
this.contextMenuStrip1 = new System.Windows.Forms.ContextMenuStrip(this.components);
this.miCLose = new System.Windows.Forms.ToolStripMenuItem();
this.miCloseAll = new System.Windows.Forms.ToolStripMenuItem();
this.miCloseAllButThis = new System.Windows.Forms.ToolStripMenuItem();
this.contextMenuStrip1.SuspendLayout();
this.SuspendLayout();
//
// contextMenuStrip1
//
this.contextMenuStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
this.miCLose,
this.miCloseAll,
this.miCloseAllButThis});
this.contextMenuStrip1.Name = "contextMenuStrip1";
this.contextMenuStrip1.Size = new System.Drawing.Size(143, 70);
//
// miCLose
//
this.miCLose.Name = "miCLose";
this.miCLose.Size = new System.Drawing.Size(142, 22);
this.miCLose.Text = "�ر�";
this.miCLose.ToolTipText = "�رյ�ǰ����";
this.miCLose.Click += new System.EventHandler(this.miCLose_Click);
//
// miCloseAll
//
this.miCloseAll.Name = "miCloseAll";
this.miCloseAll.Size = new System.Drawing.Size(142, 22);
this.miCloseAll.Text = "�ر�����";
this.miCloseAll.ToolTipText = "�ر����д���";
this.miCloseAll.Click += new System.EventHandler(this.miCloseAll_Click);
//
// miCloseAllButThis
//
this.miCloseAllButThis.Name = "miCloseAllButThis";
this.miCloseAllButThis.Size = new System.Drawing.Size(142, 22);
this.miCloseAllButThis.Text = "�رմ�������";
this.miCloseAllButThis.ToolTipText = "�رճ��˴���������д���";
this.miCloseAllButThis.Click += new System.EventHandler(this.miCloseAllButThis_Click);
//
// FormAJDoc
//
this.ClientSize = new System.Drawing.Size(448, 393);
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
this.Name = "FormAJDoc";
this.Padding = new System.Windows.Forms.Padding(0, 4, 0, 0);
this.TabPageContextMenuStrip = this.contextMenuStrip1;
this.Load += new System.EventHandler(this.LLFormDoc_Load);
this.contextMenuStrip1.ResumeLayout(false);
this.ResumeLayout(false);
}
示例14: Cell
public Cell(Point location, int rotation, string id, int cellX, int cellY, int posX, int posY)
: base(location, rotation, id, cellX, cellY)
{
var menu = new System.Windows.Forms.ContextMenuStrip();
menu.Items.Add("CreateFromHere", null, (object sender, EventArgs e) => FireCreateFromHereEvent(this));
PosX = posX;
PosY = posY;
PictureBox.ContextMenuStrip = menu;
}
示例15: InitializeComponent
/// <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(ShareWatcher));
this.notifyIcon1 = new System.Windows.Forms.NotifyIcon(this.components);
this.contextMenu = new System.Windows.Forms.ContextMenuStrip(this.components);
this.monitoringEnabledMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.closeMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.contextMenu.SuspendLayout();
this.SuspendLayout();
//
// notifyIcon1
//
this.notifyIcon1.ContextMenuStrip = this.contextMenu;
this.notifyIcon1.Icon = ((System.Drawing.Icon)(resources.GetObject("notifyIcon1.Icon")));
this.notifyIcon1.Text = "MyFilms Share Watcher";
this.notifyIcon1.Visible = true;
//
// contextMenu
//
this.contextMenu.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
this.monitoringEnabledMenuItem,
this.closeMenuItem});
this.contextMenu.Name = "contextMenuStrip1";
this.contextMenu.Size = new System.Drawing.Size(216, 70);
//
// monitoringEnabledMenuItem
//
this.monitoringEnabledMenuItem.Checked = true;
this.monitoringEnabledMenuItem.CheckState = System.Windows.Forms.CheckState.Checked;
this.monitoringEnabledMenuItem.Name = "monitoringEnabledMenuItem";
this.monitoringEnabledMenuItem.Size = new System.Drawing.Size(215, 22);
this.monitoringEnabledMenuItem.Text = "Monitoring Enabled";
this.monitoringEnabledMenuItem.Click += new System.EventHandler(this.monitoringEnabledMenuItem_Click);
//
// closeMenuItem
//
this.closeMenuItem.Name = "closeMenuItem";
this.closeMenuItem.Size = new System.Drawing.Size(215, 22);
this.closeMenuItem.Text = "Close Music Share Watcher";
//
// ShareWatcher
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(412, 178);
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
this.Name = "ShareWatcher";
this.ShowInTaskbar = false;
this.Text = "MyFilms Share Watcher";
this.WindowState = System.Windows.Forms.FormWindowState.Minimized;
this.Resize += new System.EventHandler(this.OnResize);
this.contextMenu.ResumeLayout(false);
this.ResumeLayout(false);
}