public void LoadItems(List <TooltipItem> lsTooltips)
        {
            _dtToolSet = lsTooltips;
            List <ToolStripMenuItem> lsMenuItems = new List <ToolStripMenuItem>();

            foreach (TooltipItem r in lsTooltips)
            {
                var item = new ToolStripMenuItem();

                item.Name   = "_" + r.Title;
                item.Size   = new Size(152, 22);
                item.Text   = r.Title;
                item.Click += Item_Click;
                lsMenuItems.Add(item);
            }

            this._trayIconContextMenu.Items.AddRange(lsMenuItems.ToArray());
            _trayIconContextMenu.ResumeLayout(false);
        }
 private void InitializeComponent()
 {
     components        = new Container();
     treeContextMenu   = new ContextMenuStrip(components);
     expandAllMenuItem = new ToolStripMenuItem();
     statusStrip1      = new StatusStrip();
     treeContextMenu.SuspendLayout();
     SuspendLayout();
     //
     // treeContextMenu
     //
     treeContextMenu.ImageScalingSize = new Size(20, 20);
     treeContextMenu.Items.AddRange(new ToolStripItem[] {
         expandAllMenuItem
     });
     treeContextMenu.Name     = "treeContextMenu";
     treeContextMenu.Size     = new Size(147, 30);
     treeContextMenu.Opening += new CancelEventHandler(treeContextMenu_Opening);
     //
     // expandAllMenuItem
     //
     expandAllMenuItem.Name             = "expandAllMenuItem";
     expandAllMenuItem.ShortcutKeys     = ((Keys)((Keys.Control | Keys.E)));
     expandAllMenuItem.ShowShortcutKeys = false;
     expandAllMenuItem.Size             = new Size(146, 26);
     expandAllMenuItem.Text             = "&Expand All";
     //
     // statusStrip1
     //
     statusStrip1.ImageScalingSize = new Size(20, 20);
     statusStrip1.Location         = new Point(0, 0);
     statusStrip1.Name             = "statusStrip1";
     statusStrip1.Size             = new Size(200, 22);
     statusStrip1.TabIndex         = 0;
     statusStrip1.Text             = "statusStrip1";
     //
     // JsonTreeView
     //
     ContextMenuStrip = treeContextMenu;
     FullRowSelect    = true;
     treeContextMenu.ResumeLayout(false);
     ResumeLayout(false);
 }
Exemple #3
0
        private void Settings_Load(object sender, EventArgs e)
        {
            this.ShowInTaskbar = false;

            taskBarStatusIcon();

            //Optional - Add a context menu to the TrayIcon:
            TrayIconContextMenu  = new ContextMenuStrip();
            CloseMenuItem        = new ToolStripMenuItem();
            OpenSettingsMenuItem = new ToolStripMenuItem();

            TrayIconContextMenu.SuspendLayout();

            //
            // TrayIconContextMenu
            //
            this.TrayIconContextMenu.Items.AddRange(new ToolStripItem[] { this.OpenSettingsMenuItem });
            this.TrayIconContextMenu.Items.AddRange(new ToolStripItem[] { this.CloseMenuItem });

            this.TrayIconContextMenu.Name = "TrayIconContextMenu";
            this.TrayIconContextMenu.Size = new Size(153, 70);

            //
            // OpenSettingsMenuItem
            //
            this.OpenSettingsMenuItem.Name   = "OpenSettingsMenuItem";
            this.OpenSettingsMenuItem.Size   = new Size(152, 22);
            this.OpenSettingsMenuItem.Text   = "Show Settings";
            this.OpenSettingsMenuItem.Click += new EventHandler(this.OpenSettingsMenuItem_Click);

            //
            // CloseMenuItem
            //
            this.CloseMenuItem.Name   = "CloseMenuItem";
            this.CloseMenuItem.Size   = new Size(152, 22);
            this.CloseMenuItem.Text   = "Exit PinTaskbar";
            this.CloseMenuItem.Click += new EventHandler(this.CloseMenuItem_Click);



            TrayIconContextMenu.ResumeLayout(false);
            notifyIcon1.ContextMenuStrip = TrayIconContextMenu;
        }
Exemple #4
0
        public ContextMenu()
        {
            ctxMenuApp = new ContextMenuStrip();
            var mnuSetup     = new ToolStripMenuItem();
            var mnuQuit      = new ToolStripMenuItem();
            var mnuSeparator = new ToolStripSeparator();

            ctxMenuApp.SuspendLayout();

            //
            // ctxMenuApp
            //
            ctxMenuApp.ImageScalingSize = new Size(16, 16);
            ctxMenuApp.Items.AddRange(new ToolStripItem[] {
                mnuSetup,
                mnuQuit,
                mnuSeparator
            });
            ctxMenuApp.Name = "contextMenuStrip1";
            ctxMenuApp.Size = new Size(143, 100);
            //
            // mnuSetup
            //
            mnuSetup.Name   = "mnuSetup";
            mnuSetup.Size   = new Size(198, 30);
            mnuSetup.Text   = "Setup...";
            mnuSetup.Click += mnuSetup_Click;
            //
            // mnuQuit
            //
            mnuQuit.Name   = "mnuQuit";
            mnuQuit.Size   = new Size(198, 30);
            mnuQuit.Text   = "&Quit";
            mnuQuit.Click += mnuQuit_Click;
            //
            // toolStripSeparator1
            //
            mnuSeparator.Name    = "toolStripSeparator1";
            mnuSeparator.Size    = new Size(195, 6);
            mnuSeparator.Visible = true;

            ctxMenuApp.ResumeLayout(false);
        }
        private void InitializeComponent()
        {
            TrayIcon = new NotifyIcon();

            TrayIcon.BalloonTipIcon = ToolTipIcon.Info;
            TrayIcon.BalloonTipText =
                "I noticed that you double-clicked me! What can I do for you?";
            TrayIcon.BalloonTipTitle = "You called Master?";
            TrayIcon.Text            = "My fabulous tray icon demo application";


            //The icon is added to the project resources.
            //Here I assume that the name of the file is 'TrayIcon.ico'
            //TrayIcon.Icon = Properties.Resources.TrayIcon;

            //Optional - handle doubleclicks on the icon:
            TrayIcon.DoubleClick += TrayIcon_DoubleClick;

            //Optional - Add a context menu to the TrayIcon:
            TrayIconContextMenu = new ContextMenuStrip();
            CloseMenuItem       = new ToolStripMenuItem();
            TrayIconContextMenu.SuspendLayout();

            //
            // TrayIconContextMenu
            //
            this.TrayIconContextMenu.Items.AddRange(new ToolStripItem[] {
                this.CloseMenuItem
            });
            this.TrayIconContextMenu.Name = "TrayIconContextMenu";
            this.TrayIconContextMenu.Size = new Size(153, 70);
            //
            // CloseMenuItem
            //
            this.CloseMenuItem.Name   = "CloseMenuItem";
            this.CloseMenuItem.Size   = new Size(152, 22);
            this.CloseMenuItem.Text   = "Close the tray icon program";
            this.CloseMenuItem.Click += new EventHandler(this.CloseMenuItem_Click);

            TrayIconContextMenu.ResumeLayout(false);
            TrayIcon.ContextMenuStrip = TrayIconContextMenu;
        }
        private void InitContextMenu()
        {
            _contextMenu      = new ContextMenuStrip(components);
            _selectThisItem   = new ToolStripMenuItem();
            _goBackOneItem    = new ToolStripMenuItem();
            _goForwardOneItem = new ToolStripMenuItem();
            _contextMenu.SuspendLayout();

            //
            // contextMenu
            //
            _contextMenu.Items.AddRange(new ToolStripItem[]
            {
                _selectThisItem,
                _goBackOneItem,
                _goForwardOneItem
            });
            _contextMenu.Name = "contextMenu";
            _contextMenu.Size = new Size(126, 70);
            //
            // selectThisItem
            //
            _selectThisItem.Name   = "selectThisItem";
            _selectThisItem.Size   = new Size(125, 22);
            _selectThisItem.Text   = "Select";
            _selectThisItem.Click += selectThisItem_Click;
            //
            // goBackOneItem
            //
            _goBackOneItem.Name   = "goBackOneItem";
            _goBackOneItem.Size   = new Size(125, 22);
            _goBackOneItem.Text   = "Back";
            _goBackOneItem.Click += goBackOneItem_Click;
            //
            // goForwardOneItem
            //
            _goForwardOneItem.Name   = "goForwardOneItem";
            _goForwardOneItem.Size   = new Size(125, 22);
            _goForwardOneItem.Text   = "Forward";
            _goForwardOneItem.Click += goForwardOneItem_Click;
            _contextMenu.ResumeLayout(false);
        }
        public void UpdateButtons()
        {
            cmsHistory.SuspendLayout();
            cmsHistory.Enabled = true;

            // Open
            tsmiOpenURL.Enabled          = IsURLExist;
            tsmiOpenShortenedURL.Enabled = IsShortenedURLExist;
            tsmiOpenThumbnailURL.Enabled = IsThumbnailURLExist;
            tsmiOpenDeletionURL.Enabled  = IsDeletionURLExist;

            tsmiOpenFile.Enabled   = IsFileExist;
            tsmiOpenFolder.Enabled = IsFileExist;

            // Copy
            tsmiCopyURL.Enabled          = IsURLExist;
            tsmiCopyShortenedURL.Enabled = IsShortenedURLExist;
            tsmiCopyThumbnailURL.Enabled = IsThumbnailURLExist;
            tsmiCopyDeletionURL.Enabled  = IsDeletionURLExist;

            tsmiCopyFile.Enabled  = IsFileExist;
            tsmiCopyImage.Enabled = IsImageFile;
            tsmiCopyText.Enabled  = IsTextFile;

            tsmiCopyHTMLLink.Enabled        = IsURLExist;
            tsmiCopyHTMLImage.Enabled       = IsImageURL;
            tsmiCopyHTMLLinkedImage.Enabled = IsImageURL && IsThumbnailURLExist;

            tsmiCopyForumLink.Enabled        = IsURLExist;
            tsmiCopyForumImage.Enabled       = IsImageURL && IsURLExist;
            tsmiCopyForumLinkedImage.Enabled = IsImageURL && IsThumbnailURLExist;

            tsmiCopyFilePath.Enabled = IsFilePathValid;
            tsmiCopyFileName.Enabled = IsFilePathValid;
            tsmiCopyFileNameWithExtension.Enabled = IsFilePathValid;
            tsmiCopyFolder.Enabled = IsFilePathValid;

            // Show
            tsmiShowImagePreview.Enabled = IsImageFile;

            cmsHistory.ResumeLayout();
        }
        private void AddContextMenuItems(ContextMenuStrip menu, IEnumerable<ToolStripItem> items, ToolStripItem? insertBefore = null, ToolStripItem? insertAfter = null)
        {
            Debug.Assert(!(insertAfter is not null && insertBefore is not null), $"Only {nameof(insertBefore)} or {nameof(insertAfter)} is allowed.");

            menu.SuspendLayout();

            int index;
            if (insertBefore is not null)
            {
                index = Math.Max(0, menu.Items.IndexOf(insertBefore) - 1);
                items.ForEach(item => menu.Items.Insert(++index, item));
            }
            else
            {
                index = insertAfter is null ? 0 : Math.Max(0, menu.Items.IndexOf(insertAfter) + 1);
                items.ForEach(item => menu.Items.Insert(index++, item));
            }

            menu.ResumeLayout();
        }
Exemple #9
0
 private void GVErrorList_CellMouseClick(object sender, DataGridViewCellMouseEventArgs e)
 {
     if (e.Button == MouseButtons.Right)
     {
         //Making context menu and showing it
         DataGridViewCell  CurrentCell           = (sender as DataGridView).CurrentCell;
         ContextMenuStrip  GoTo                  = new ContextMenuStrip();
         ToolStripMenuItem goToToolStripMenuItem = new ToolStripMenuItem();
         goToToolStripMenuItem.Name = "goToToolStripMenuItem";
         goToToolStripMenuItem.Size = new System.Drawing.Size(152, 22);
         goToToolStripMenuItem.Text = "Go To";
         GoTo.Items.AddRange(new ToolStripItem[] { goToToolStripMenuItem });
         GoTo.Size = new System.Drawing.Size(153, 48);
         GoTo.SuspendLayout();
         GoTo.ResumeLayout(false);
         GoTo.MouseClick += new MouseEventHandler(GoTo_MouseClick);
         CurrentCell.ContextMenuStrip = GoTo;
         CurrentCell.ContextMenuStrip.Show(sender as DataGridView, e.X, e.Y + GVErrorList.CurrentRow.Index * GVErrorList.CurrentRow.Height);
     }
 }
Exemple #10
0
        private void InitializeComponent()
        {
            TrayIcon = new NotifyIcon();

            TrayIcon.BalloonTipIcon = ToolTipIcon.Info;
            //TrayIcon.BalloonTipText = "O Serviço Sihl está em execução! Para fechar clique com o botão direito!";
            TrayIcon.BalloonTipTitle = "Sihl Suporte";
            TrayIcon.Text            = "Sihl Suporte";

            //The icon is added to the project resources.
            projeto       = Assembly.LoadFrom(Environment.CurrentDirectory + @"\SihlHosting.exe");
            TrayIcon.Icon = new Icon(Path.GetDirectoryName(projeto.Location) + "\\suporte.ico");

            //Optional - handle doubleclicks on the icon:
            TrayIcon.DoubleClick += TrayIcon_DoubleClick;

            //Optional - Add a context menu to the TrayIcon:
            TrayIconContextMenu = new ContextMenuStrip();
            CloseMenuItem       = new ToolStripMenuItem();
            TrayIconContextMenu.SuspendLayout();

            //
            // TrayIconContextMenu
            //
            this.TrayIconContextMenu.Items.AddRange(new ToolStripItem[] {
                this.CloseMenuItem
            });
            this.TrayIconContextMenu.Name = "TrayIconContextMenu";
            this.TrayIconContextMenu.Size = new Size(153, 70);
            //
            // CloseMenuItem
            //
            this.CloseMenuItem.Name   = "CloseMenuItem";
            this.CloseMenuItem.Size   = new Size(152, 22);
            this.CloseMenuItem.Text   = "Fechar Sihl Suporte";
            this.CloseMenuItem.Click += new EventHandler(this.CloseMenuItem_Click);

            TrayIconContextMenu.ResumeLayout(false);

            TrayIcon.ContextMenuStrip = TrayIconContextMenu;
        }
Exemple #11
0
        private void InitializeComponent()
        {
            components = new Container();
            var componentResourceManager = new ComponentResourceManager(typeof(Form1));

            glControl1        = new GLControl(new GraphicsMode(new ColorFormat(32), 24, 0, 8), 3, 0, GraphicsContextFlags.ForwardCompatible);
            contextMenuStrip1 = new ContextMenuStrip(components);
            contextMenuStrip1.SuspendLayout();
            SuspendLayout();
            glControl1.BackColor = Color.Black;
            componentResourceManager.ApplyResources(glControl1, "glControl1");
            glControl1.Name            = "glControl1";
            glControl1.VSync           = false;
            glControl1.Load           += new EventHandler(glControl1_Load);
            glControl1.Paint          += new PaintEventHandler(glControl1_Paint);
            glControl1.Enter          += new EventHandler(OnEnterFocus);
            glControl1.KeyDown        += new KeyEventHandler(OnKeyDown);
            glControl1.KeyPress       += new KeyPressEventHandler(OnKeyPress);
            glControl1.KeyUp          += new KeyEventHandler(OnKeyUp);
            glControl1.Leave          += new EventHandler(OnLeaveFocus);
            glControl1.MouseDown      += new MouseEventHandler(Form1_MouseDown);
            glControl1.MouseLeave     += new EventHandler(Form1_MouseLeave);
            glControl1.MouseMove      += new MouseEventHandler(Form1_MouseMove);
            glControl1.MouseUp        += new MouseEventHandler(Form1_MouseUp);
            glControl1.PreviewKeyDown += new PreviewKeyDownEventHandler(OnPreviewKeyDown);
            glControl1.Resize         += new EventHandler(glControl1_Resize);
            componentResourceManager.ApplyResources(this, "$this");
            AutoScaleMode = AutoScaleMode.Font;
            Controls.Add(glControl1);
            Name         = nameof(Form1);
            FormClosing += new FormClosingEventHandler(Form1_FormClosing);
            FormClosed  += new FormClosedEventHandler(Form1_FormClosed);
            Load        += new EventHandler(Form1_Load);
            MouseDown   += new MouseEventHandler(Form1_MouseDown);
            MouseLeave  += new EventHandler(Form1_MouseLeave);
            MouseMove   += new MouseEventHandler(Form1_MouseMove);
            MouseUp     += new MouseEventHandler(Form1_MouseUp);
            contextMenuStrip1.ResumeLayout(false);
            ResumeLayout(false);
        }
Exemple #12
0
 private void InitializeComponent()
 {
     components                    = new Container();
     treeView1                     = new TreeView();
     contextMenuStrip1             = new ContextMenuStrip(components);
     copyFilenameToolStripMenuItem = new ToolStripMenuItem();
     textBox1 = new TextBox();
     contextMenuStrip1.SuspendLayout();
     base.SuspendLayout();
     treeView1.ContextMenuStrip = contextMenuStrip1;
     treeView1.Dock             = DockStyle.Fill;
     treeView1.Location         = new Point(0, 20);
     treeView1.Name             = "treeView1";
     treeView1.Size             = new Size(0x1a1, 0x26e);
     treeView1.TabIndex         = 0;
     treeView1.AfterSelect     += new TreeViewEventHandler(treeView1_AfterSelect);
     contextMenuStrip1.Items.AddRange(new ToolStripItem[] { copyFilenameToolStripMenuItem });
     contextMenuStrip1.Name               = "contextMenuStrip1";
     contextMenuStrip1.Size               = new Size(0x9a, 0x1a);
     copyFilenameToolStripMenuItem.Name   = "copyFilenameToolStripMenuItem";
     copyFilenameToolStripMenuItem.Size   = new Size(0x99, 0x16);
     copyFilenameToolStripMenuItem.Text   = "Copy Filename";
     copyFilenameToolStripMenuItem.Click += new EventHandler(copyFilenameToolStripMenuItem_Click);
     textBox1.Dock            = DockStyle.Top;
     textBox1.Location        = new Point(0, 0);
     textBox1.Name            = "textBox1";
     textBox1.Size            = new Size(0x1a1, 20);
     textBox1.TabIndex        = 1;
     base.AutoScaleDimensions = new SizeF(6f, 13f);
     base.AutoScaleMode       = AutoScaleMode.Font;
     base.ClientSize          = new Size(0x1a1, 0x282);
     base.Controls.Add(treeView1);
     base.Controls.Add(textBox1);
     base.Name  = "TagNameDatabase";
     Text       = "Halo FileName Database";
     base.Load += new EventHandler(TagNameDatabase_Load);
     contextMenuStrip1.ResumeLayout(false);
     base.ResumeLayout(false);
     base.PerformLayout();
 }
Exemple #13
0
        private void InitializeComponent()
        {
            _trayIcon = new NotifyIcon
            {
                BalloonTipIcon  = ToolTipIcon.Info,
                BalloonTipText  = "Is there a new background?",
                BalloonTipTitle = "Unsplasher",
                Icon            = Resources.TrayIcon
            };

            _trayIconContextMenu = new ContextMenuStrip();
            _closeMenuItem       = new ToolStripMenuItem();
            _refreshMenuItem     = new ToolStripMenuItem();
            _trayIconContextMenu.SuspendLayout();

            _trayIconContextMenu.Items.AddRange(new ToolStripItem[]
            {
                _refreshMenuItem
            });
            _trayIconContextMenu.Items.AddRange(new ToolStripItem[]
            {
                _closeMenuItem
            });
            _trayIconContextMenu.Name = "_trayIconContextMenu";
            _trayIconContextMenu.Size = new Size(161, 100);

            _closeMenuItem.Name   = "_closeMenuItem";
            _closeMenuItem.Size   = new Size(161, 50);
            _closeMenuItem.Text   = "Exit";
            _closeMenuItem.Click += CloseMenuItem_Click;

            _refreshMenuItem.Name   = "Refresh";
            _refreshMenuItem.Size   = new Size(161, 50);
            _refreshMenuItem.Text   = "Refresh";
            _refreshMenuItem.Click += RefreshMenuItemClick;

            _trayIconContextMenu.ResumeLayout(false);
            _trayIcon.ContextMenuStrip = _trayIconContextMenu;
        }
        private void InitializeComponent()
        {
            trayIcon = new NotifyIcon();

            // The icon is added to the project resources.
            trayIcon.Icon = Properties.Resources.TrayIcon;

            // TrayIconContextMenu
            trayIconContextMenu = new ContextMenuStrip();
            trayIconContextMenu.SuspendLayout();
            trayIconContextMenu.Name = "TrayIconContextMenu";

            // Tray Context Menuitems to set color
            this.trayIconContextMenu.Items.Add("Available", null, new EventHandler(AvailableMenuItem_Click));
            this.trayIconContextMenu.Items.Add("Busy", null, new EventHandler(BusyMenuItem_Click));
            this.trayIconContextMenu.Items.Add("Away", null, new EventHandler(AwayMenuItem_Click));
            this.trayIconContextMenu.Items.Add("DoNotDisturb", null, new EventHandler(DoNotDisturbMenuItem_Click));
            this.trayIconContextMenu.Items.Add("Off", null, new EventHandler(OffMenuItem_Click));

            // Separation Line
            this.trayIconContextMenu.Items.Add(new ToolStripSeparator());

            // About Form Line
            this.trayIconContextMenu.Items.Add("About", null, new EventHandler(aboutMenuItem_Click));

            // Settings Form Line
            this.trayIconContextMenu.Items.Add("Settings", null, new EventHandler(settingsMenuItem_Click));

            // Separation Line
            this.trayIconContextMenu.Items.Add(new ToolStripSeparator());

            // CloseMenuItem
            this.trayIconContextMenu.Items.Add("Exit", null, new EventHandler(CloseMenuItem_Click));


            trayIconContextMenu.ResumeLayout(false);
            trayIcon.ContextMenuStrip = trayIconContextMenu;
        }
Exemple #15
0
        private void InitializeComponent()
        {
            _trayIcon = new System.Windows.Forms.NotifyIcon();

            _trayIcon.BalloonTipIcon  = ToolTipIcon.Info;
            _trayIcon.BalloonTipText  = "Recalculando Indicadores, clique para ver detalhes.";
            _trayIcon.BalloonTipTitle = "Recalculo de Indicadores";

            //Handle click balloon
            _trayIcon.BalloonTipClicked += _trayIcon_BalloonTipClicked;

            _trayIcon.Text = "Recalculando Indicadores";

            //The icon is added to the project resources
            _trayIcon.Icon = Resource.Task_Icon;

            //Optional - handle doubleclicks on the icon
            _trayIcon.MouseDoubleClick += _trayIcon_MouseDoubleClick;

            //Optional - Add a context menu to the _trayIcon
            _trayIconContextMenu = new ContextMenuStrip();
            _closeMenuItem       = new ToolStripMenuItem();
            _trayIconContextMenu.SuspendLayout();

            //trayiconContextMenu
            _trayIconContextMenu.Items.AddRange(new ToolStripItem[] { _closeMenuItem });
            _trayIconContextMenu.Name = "TrayIconContextMenu";
            _trayIconContextMenu.Size = new Size(153, 70);

            //closeMenuItem
            _closeMenuItem.Name   = "CloseMenuItem";
            _closeMenuItem.Size   = new Size(152, 22);
            _closeMenuItem.Text   = "Parar Recalculo de Indicadores";
            _closeMenuItem.Click += new EventHandler(CloseMenuItem);

            _trayIconContextMenu.ResumeLayout(false);
            _trayIcon.ContextMenuStrip = _trayIconContextMenu;
        }
Exemple #16
0
        private void OnFullscreenTimer(object sender, ElapsedEventArgs e)
        {
            string fullscreenApp;

            fullscreenApp = Utilities.IsForegroundFullScreen();

            if (fullscreenApp == string.Empty)
            {
                if (fullscreenDetected == true)
                {
                    fullscreenDelay    = (60000 / (int)fullscreenTimer.Interval); //should always be a 1 minute interval, even if we change the fullscreenTimer
                    fullscreenDetected = false;
                    return;
                }
            }
            else
            {
                fullscreenDetected          = true;
                Utilities.fullscreenAppName = fullscreenApp;
                lock (ContextMenuLock)
                {
                    TrayIconContextMenu.SuspendLayout();
                    this.IgnoreFullscreenMenuItem.Text    = "Ignore App: " + Utilities.fullscreenAppName;
                    this.IgnoreFullscreenMenuItem.Visible = true;
                    TrayIconContextMenu.ResumeLayout(true);
                    TrayIcon.ContextMenuStrip = TrayIconContextMenu;
                }
            }

            if (fullscreenDelay <= 0)
            {
                SendPipeMessage(PacketID.Fullscreen, fullscreenDetected, fullscreenApp);
            }
            else
            {
                fullscreenDelay--; //subtract 1 from the current delay before updating the service of fullscreen status
            }
        }
        public NotifyIconManager()
        {
            ContextMenu          = new ContextMenuStrip();
            ContextMenu_Settings = new ToolStripMenuItem()
            {
                Text = "Settings"
            };
            ContextMenu_Exit = new ToolStripMenuItem()
            {
                Text = "Exit"
            };

            ContextMenu.SuspendLayout();
            ContextMenu.Items.AddRange(new ToolStripItem[] { ContextMenu_Settings, ContextMenu_Exit });
            ContextMenu.ResumeLayout(false);

            NotifyIcon = new NotifyIcon()
            {
                Icon             = Properties.Resources.Icon,
                Text             = Application.ProductName,
                ContextMenuStrip = ContextMenu
            };
        }
 private void InitializeComponent()
 {
     components             = new Container();
     pictureBox1            = new PictureBox();
     contextMenuStrip1      = new ContextMenuStrip(components);
     saveToolStripMenuItem  = new ToolStripMenuItem();
     closeToolStripMenuItem = new ToolStripMenuItem();
     ((ISupportInitialize)pictureBox1).BeginInit();
     contextMenuStrip1.SuspendLayout();
     base.SuspendLayout();
     pictureBox1.BackColor        = Color.Transparent;
     pictureBox1.ContextMenuStrip = contextMenuStrip1;
     pictureBox1.Dock             = DockStyle.Fill;
     pictureBox1.Location         = new Point(0, 0);
     pictureBox1.Name             = "pictureBox1";
     pictureBox1.Size             = new Size(640, 480);
     pictureBox1.SizeMode         = PictureBoxSizeMode.Zoom;
     pictureBox1.TabIndex         = 0;
     pictureBox1.TabStop          = false;
     contextMenuStrip1.Items.AddRange(new ToolStripItem[] { saveToolStripMenuItem, closeToolStripMenuItem });
     contextMenuStrip1.Name        = "contextMenuStrip1";
     contextMenuStrip1.Size        = new Size(0x68, 0x30);
     saveToolStripMenuItem.Name    = "saveToolStripMenuItem";
     saveToolStripMenuItem.Size    = new Size(0x67, 0x16);
     saveToolStripMenuItem.Text    = "Save";
     saveToolStripMenuItem.Click  += new EventHandler(saveToolStripMenuItem_Click);
     closeToolStripMenuItem.Name   = "closeToolStripMenuItem";
     closeToolStripMenuItem.Size   = new Size(0x67, 0x16);
     closeToolStripMenuItem.Text   = "Close";
     closeToolStripMenuItem.Click += new EventHandler(closeToolStripMenuItem_Click);
     base.ClientSize = new Size(640, 480);
     base.Controls.Add(pictureBox1);
     base.Name = "ScreenshotForm";
     ((ISupportInitialize)pictureBox1).EndInit();
     contextMenuStrip1.ResumeLayout(false);
     base.ResumeLayout(false);
 }
Exemple #19
0
        public Utils()
        {
            poller = new Poller(this);
            //timer = new Timer
            //{
            //    Interval = 10,
            //    //Enabled = true
            //};
            //timer.Tick += (sender, args) => poller.Poll(Program.hotKey);

            contextMenu.SuspendLayout();

            ShowToolStripMenuItem.Text   = "ตั้งค่า";
            ShowToolStripMenuItem.Name   = "ShowToolStripMenuItem";
            ShowToolStripMenuItem.Size   = new System.Drawing.Size(73, 22);
            ShowToolStripMenuItem.Click += ShowToolStripMenuItem_Click;
            ShowToolStripMenuItem.Font   = Program.contextMenuFont;

            ExitToolStripMenuItem.Text   = "ออก";
            ExitToolStripMenuItem.Name   = "ExitToolStripMenuItem";
            ExitToolStripMenuItem.Size   = new System.Drawing.Size(73, 22);
            ExitToolStripMenuItem.Click += ExitToolStripMenuItem_Click;
            ExitToolStripMenuItem.Font   = Program.contextMenuFont;

            contextMenu.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { ShowToolStripMenuItem, ExitToolStripMenuItem });
            contextMenu.RenderMode       = System.Windows.Forms.ToolStripRenderMode.System;
            contextMenu.ShowImageMargin  = false;
            contextMenu.ShowItemToolTips = false;
            contextMenu.Size             = new System.Drawing.Size(74, 48);
            contextMenu.ResumeLayout(false);

            notifyIcon.MouseDoubleClick += NotifyIcon_MouseDoubleClick;
            notifyIcon.ContextMenuStrip  = contextMenu;
            Update();
            notifyIcon.Icon    = Properties.Resources.icon;
            notifyIcon.Visible = true;
        }
Exemple #20
0
        /// <summary>
        /// Creates the context menu.
        /// </summary>
        private void CreateContextMenu()
        {
            m_tsmiExpandCollapse = new ToolStripMenuItem();
            m_tsmiSelectAnim     = new ToolStripMenuItem("Animation Speed");
            m_tsmiNoAnim         = new ToolStripMenuItem("None");
            m_tsmiHighAnim       = new ToolStripMenuItem("High");
            m_tsmiMedAnim        = new ToolStripMenuItem("Medium");
            m_tsmiLowAnim        = new ToolStripMenuItem("Low");
            m_tsmiSeparator      = new ToolStripSeparator();

            // Add menu items
            m_tsmiSelectAnim.DropDownItems.AddRange(new ToolStripItem[]
            {
                m_tsmiNoAnim,
                m_tsmiHighAnim,
                m_tsmiMedAnim,
                m_tsmiLowAnim
            });

            // Create context menu
            m_contextMenuStrip = new ContextMenuStrip(components);
            m_contextMenuStrip.SuspendLayout();
            m_contextMenuStrip.Items.AddRange(new ToolStripItem[]
            {
                m_tsmiExpandCollapse,
                m_tsmiSeparator,
                m_tsmiSelectAnim
            });
            m_contextMenuStrip.ResumeLayout(false);

            // Subscribe events
            m_tsmiExpandCollapse.Click += tsmiExpandCollapse_Click;
            foreach (ToolStripMenuItem item in m_tsmiSelectAnim.DropDownItems)
            {
                item.Click += animationSpeedSelect_Click;
            }
        }
Exemple #21
0
        private void InitTray()
        {
            TrayIcon              = new NotifyIcon();
            TrayIcon.Visible      = true;
            TrayIcon.Icon         = SystemIcons.Asterisk;
            TrayIcon.DoubleClick += new System.EventHandler(this.trayTrayIcon_DoubleClick);

            var ContextMenu   = new ContextMenuStrip();
            var CloseMenuItem = new ToolStripMenuItem();

            ContextMenu.SuspendLayout();

            ContextMenu.Items.Add(CloseMenuItem);

            CloseMenuItem.Name   = "ContextMenu";
            CloseMenuItem.Text   = "Exit";
            CloseMenuItem.Click += new EventHandler((e, b) => {
                this.Close();
                Environment.Exit(0);
            });

            ContextMenu.ResumeLayout(false);
            TrayIcon.ContextMenuStrip = ContextMenu;
        }
Exemple #22
0
        private void InitializeComponent()
        {
            components = new Container();

            trayIcon             = new NotifyIcon(components);
            trayContextMenuStrip = new ContextMenuStrip(components);
            trayContextMenuStrip.SuspendLayout();

            //
            // trayIcon
            trayIcon.BalloonTipText   = "Double click to access settings.";
            trayIcon.BalloonTipTitle  = BitShelter.Const.AppName;
            trayIcon.ContextMenuStrip = trayContextMenuStrip;
            trayIcon.Icon             = new Icon(Path.Combine(Application.StartupPath, IconFileName));
            trayIcon.Text             = BitShelter.Const.AppName;
            trayIcon.Visible          = true;

            trayIcon.DoubleClick += settingsItem_Click;
            trayIcon.MouseUp     += trayIcon_MouseUp;

            RunAtStartupMenuItem = new ToolStripMenuItem("Run at startup", null, runAtStartupItem_Click);

            //
            // trayContextMenuStrip
            trayContextMenuStrip.Items.Add(new ToolStripMenuItem("Settings", null, settingsItem_Click));
            trayContextMenuStrip.Items.Add(RunAtStartupMenuItem);
            trayContextMenuStrip.Items.Add(new ToolStripSeparator());
            trayContextMenuStrip.Items.Add(new ToolStripMenuItem("Exit", null, exitItem_Click));
            trayContextMenuStrip.Name = "trayContextMenuStrip";

            RunAtStartupMenuItem.Checked = InstallUtils.TaskExists(Const.AppName);

            //
            // CAC
            trayContextMenuStrip.ResumeLayout(false);
        }
Exemple #23
0
        private ContextMenuStrip CreateContextMenuStrip()
        {
            ContextMenuStrip  contextMenuStrip1 = new ContextMenuStrip();
            ToolStripMenuItem btnBookSlot       = new ToolStripMenuItem();
            ToolStripMenuItem btnCancelSlot     = new ToolStripMenuItem();

            contextMenuStrip1.SuspendLayout();

            contextMenuStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { btnBookSlot, btnCancelSlot });
            contextMenuStrip1.Name = "contextMenuStrip1";
            contextMenuStrip1.Size = new System.Drawing.Size(133, 48);
            btnBookSlot.Name       = "toolStripMenuItem1";
            btnBookSlot.Size       = new System.Drawing.Size(132, 22);
            btnBookSlot.Text       = "Book slot";
            btnBookSlot.Click     += new System.EventHandler(btnBookSlot_Click);
            btnCancelSlot.Name     = "toolStripMenuItem2";
            btnCancelSlot.Size     = new System.Drawing.Size(132, 22);
            btnCancelSlot.Text     = "Cancel slot";
            btnCancelSlot.Click   += new System.EventHandler(btnCancelSlot_Click);

            contextMenuStrip1.ResumeLayout(false);

            return(contextMenuStrip1);
        }
Exemple #24
0
        private void InitializeTrayIcon()
        {
            TrayIcon = new NotifyIcon();

            TrayIcon.Icon = Resources.SystemTrayApp;

            TrayIconContextMenu = new ContextMenuStrip();
            CloseMenuItem       = new ToolStripMenuItem();
            TrayIconContextMenu.SuspendLayout();

            // Context Menu
            TrayIconContextMenu.Items.AddRange(new ToolStripItem[] { this.CloseMenuItem });
            TrayIconContextMenu.Name = "ED X52 MFD Controller";
            TrayIconContextMenu.Size = new Size(153, 70);

            // Close Menu Item
            CloseMenuItem.Name   = "Close";
            CloseMenuItem.Size   = new Size(152, 22);
            CloseMenuItem.Text   = "Close ED X52 MFD Controller";
            CloseMenuItem.Click += new EventHandler(CloseMenuItem_Click);

            TrayIconContextMenu.ResumeLayout(false);
            TrayIcon.ContextMenuStrip = TrayIconContextMenu;
        }
Exemple #25
0
        private void InitializeComponent()
        {
            components = new System.ComponentModel.Container();
            var resources = new System.ComponentModel.ComponentResourceManager(typeof(Form1));

            _GameSelector = new ComboBox();
            _GameSelector.SelectedIndexChanged += new EventHandler(GameSelector_SelectedIndexChanged);
            Label1                                = new Label();
            _ImportButton                         = new Button();
            _ImportButton.Click                  += new EventHandler(ImportButton_Click);
            _TrackList                            = new ListView();
            _TrackList.MouseClick                += new MouseEventHandler(TrackList_MouseClick);
            _TrackList.MouseDoubleClick          += new MouseEventHandler(TrackList_MouseDoubleClick);
            LoadedCol                             = new ColumnHeader();
            TrackCol                              = new ColumnHeader();
            HotKeyCol                             = new ColumnHeader();
            VolumeCol                             = new ColumnHeader();
            Trimmed                               = new ColumnHeader();
            TagsCol                               = new ColumnHeader();
            _StartButton                          = new Button();
            _StartButton.Click                   += new EventHandler(StartButton_Click);
            ImportDialog                          = new OpenFileDialog();
            ProgressBar1                          = new ProgressBar();
            _WavWorker                            = new System.ComponentModel.BackgroundWorker();
            _WavWorker.DoWork                    += new System.ComponentModel.DoWorkEventHandler(WavWorker_DoWork);
            _WavWorker.ProgressChanged           += new System.ComponentModel.ProgressChangedEventHandler(WavWorker_ProgressChanged);
            _WavWorker.RunWorkerCompleted        += new System.ComponentModel.RunWorkerCompletedEventHandler(WavWorker_RunWorkerCompleted);
            _PollRelayWorker                      = new System.ComponentModel.BackgroundWorker();
            _PollRelayWorker.DoWork              += new System.ComponentModel.DoWorkEventHandler(PollRelayWorker_DoWork);
            _PollRelayWorker.ProgressChanged     += new System.ComponentModel.ProgressChangedEventHandler(PollRelayWorker_ProgressChanged);
            _PollRelayWorker.RunWorkerCompleted  += new System.ComponentModel.RunWorkerCompletedEventHandler(PollRelayWorker_RunWorkerCompleted);
            _ChangeDirButton                      = new Button();
            _ChangeDirButton.Click               += new EventHandler(ChangeDirButton_Click);
            TrackContextMenu                      = new ContextMenuStrip(components);
            _ContextDelete                        = new ToolStripMenuItem();
            _ContextDelete.Click                 += new EventHandler(ContextDelete_Click);
            _GoToToolStripMenuItem                = new ToolStripMenuItem();
            _GoToToolStripMenuItem.Click         += new EventHandler(GoToToolStripMenuItem_Click);
            _ContextRefresh                       = new ToolStripMenuItem();
            _ContextRefresh.Click                += new EventHandler(ContextRefresh_Click);
            _RemoveHotkeyToolStripMenuItem        = new ToolStripMenuItem();
            _RemoveHotkeyToolStripMenuItem.Click += new EventHandler(RemoveHotkeyToolStripMenuItem_Click);
            _RenameToolStripMenuItem              = new ToolStripMenuItem();
            _RenameToolStripMenuItem.Click       += new EventHandler(RenameToolStripMenuItem_Click);
            _ContextHotKey                        = new ToolStripMenuItem();
            _ContextHotKey.Click                 += new EventHandler(ContextHotKey_Click);
            _SetVolumeToolStripMenuItem           = new ToolStripMenuItem();
            _SetVolumeToolStripMenuItem.Click    += new EventHandler(SetVolumeToolStripMenuItem_Click);
            _TrimToolStripMenuItem                = new ToolStripMenuItem();
            _TrimToolStripMenuItem.Click         += new EventHandler(TrimToolStripMenuItem_Click);
            _LoadToolStripMenuItem                = new ToolStripMenuItem();
            _LoadToolStripMenuItem.Click         += new EventHandler(LoadToolStripMenuItem_Click);
            _PlayKeyButton                        = new Button();
            _PlayKeyButton.Click                 += new EventHandler(PlayKeyButton_Click);
            StatusLabel                           = new Label();
            _SystemTrayIcon                       = new NotifyIcon(components);
            _SystemTrayIcon.DoubleClick          += new EventHandler(SystemTrayIcon_DoubleClick);
            SystemTrayMenu                        = new ContextMenuStrip(components);
            _SystemTrayMenu_Open                  = new ToolStripMenuItem();
            _SystemTrayMenu_Open.Click           += new EventHandler(SystemTrayMenu_OpenHandler);
            _SystemTrayMenu_StartStop             = new ToolStripMenuItem();
            _SystemTrayMenu_StartStop.Click      += new EventHandler(SystemTrayMenu_StartStopHandler);
            ToolStripSeparator1                   = new ToolStripSeparator();
            _SystemTrayMenu_Exit                  = new ToolStripMenuItem();
            _SystemTrayMenu_Exit.Click           += new EventHandler(SystemTrayMenu_ExitHandler);
            _YTButton                             = new Button();
            _YTButton.Click                      += new EventHandler(YTButton_Click);
            TrackContextMenu.SuspendLayout();
            SystemTrayMenu.SuspendLayout();
            SuspendLayout();
            //
            // GameSelector
            //
            _GameSelector.Anchor            = AnchorStyles.Top | AnchorStyles.Left | AnchorStyles.Right;
            _GameSelector.DropDownStyle     = ComboBoxStyle.DropDownList;
            _GameSelector.FormattingEnabled = true;
            _GameSelector.Location          = new Point(56, 12);
            _GameSelector.MaxDropDownItems  = 100;
            _GameSelector.Name     = "_GameSelector";
            _GameSelector.Size     = new Size(435, 21);
            _GameSelector.TabIndex = 0;
            //
            // Label1
            //
            Label1.AutoSize = true;
            Label1.Location = new Point(12, 15);
            Label1.Name     = "Label1";
            Label1.Size     = new Size(38, 13);
            Label1.TabIndex = 1;
            Label1.Text     = "Game:";
            //
            // ImportButton
            //
            _ImportButton.Anchor   = AnchorStyles.Bottom | AnchorStyles.Left;
            _ImportButton.Location = new Point(15, 297);
            _ImportButton.Name     = "_ImportButton";
            _ImportButton.Size     = new Size(54, 23);
            _ImportButton.TabIndex = 3;
            _ImportButton.Text     = "Import";
            _ImportButton.UseVisualStyleBackColor = true;
            //
            // TrackList
            //
            _TrackList.Anchor = AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right;

            _TrackList.AutoArrange = false;
            _TrackList.Columns.AddRange(new ColumnHeader[] { LoadedCol, TrackCol, HotKeyCol, VolumeCol, Trimmed, TagsCol });
            _TrackList.FullRowSelect = true;
            _TrackList.HideSelection = false;
            _TrackList.ImeMode       = ImeMode.Off;
            _TrackList.Location      = new Point(15, 39);
            _TrackList.Name          = "_TrackList";
            _TrackList.Size          = new Size(557, 252);
            _TrackList.TabIndex      = 4;
            _TrackList.UseCompatibleStateImageBehavior = false;
            _TrackList.View = View.Details;
            //
            // LoadedCol
            //
            LoadedCol.Text = "Loaded";
            //
            // TrackCol
            //
            TrackCol.Text  = "Track";
            TrackCol.Width = 137;
            //
            // HotKeyCol
            //
            HotKeyCol.Text = "Bind";
            //
            // VolumeCol
            //
            VolumeCol.Text  = "Volume";
            VolumeCol.Width = 100;
            //
            // Trimmed
            //
            Trimmed.Text = "Trimmed";
            //
            // TagsCol
            //
            TagsCol.Text  = "Tags";
            TagsCol.Width = 43;
            //
            // StartButton
            //
            _StartButton.Anchor   = AnchorStyles.Bottom | AnchorStyles.Left;
            _StartButton.Location = new Point(96, 297);
            _StartButton.Name     = "_StartButton";
            _StartButton.Size     = new Size(75, 23);
            _StartButton.TabIndex = 5;
            _StartButton.Text     = "Start";
            _StartButton.UseVisualStyleBackColor = true;
            //
            // ImportDialog
            //
            ImportDialog.Filter      = "Media files|*.mp3;*.wav;*.aac;*.wma;*.m4a;*.mp4;*.wmv;*.avi;*.m4v;*.mov;|Audio fi" + "les|*.mp3;*.wav;*.aac;*.wma;*.m4a;|Video files|*.mp4;*.wmv;*.avi;*.m4v;*.mov;|Al" + "l files|*.*";
            ImportDialog.Multiselect = true;
            //
            // ProgressBar1
            //
            ProgressBar1.Anchor   = AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right;
            ProgressBar1.Location = new Point(15, 326);
            ProgressBar1.Name     = "ProgressBar1";
            ProgressBar1.Size     = new Size(557, 23);
            ProgressBar1.Step     = 1;
            ProgressBar1.TabIndex = 6;
            //
            // WavWorker
            //
            _WavWorker.WorkerReportsProgress = true;
            //
            // PollRelayWorker
            //
            _PollRelayWorker.WorkerReportsProgress      = true;
            _PollRelayWorker.WorkerSupportsCancellation = true;
            //
            // ChangeDirButton
            //
            _ChangeDirButton.Anchor   = AnchorStyles.Top | AnchorStyles.Right;
            _ChangeDirButton.Location = new Point(497, 10);
            _ChangeDirButton.Name     = "_ChangeDirButton";
            _ChangeDirButton.Size     = new Size(75, 23);
            _ChangeDirButton.TabIndex = 7;
            _ChangeDirButton.Text     = "Settings";
            _ChangeDirButton.UseVisualStyleBackColor = true;
            //
            // TrackContextMenu
            //
            TrackContextMenu.ImageScalingSize = new Size(24, 24);
            TrackContextMenu.Items.AddRange(new ToolStripItem[] { _ContextDelete, _GoToToolStripMenuItem, _ContextRefresh, _RemoveHotkeyToolStripMenuItem, _RenameToolStripMenuItem, _ContextHotKey, _SetVolumeToolStripMenuItem, _TrimToolStripMenuItem, _LoadToolStripMenuItem });
            TrackContextMenu.Name = "TrackContextMenu";
            TrackContextMenu.Size = new Size(145, 202);
            //
            // ContextDelete
            //
            _ContextDelete.Name = "_ContextDelete";
            _ContextDelete.Size = new Size(144, 22);
            _ContextDelete.Text = "Delete";
            //
            // GoToToolStripMenuItem
            //
            _GoToToolStripMenuItem.Name = "_GoToToolStripMenuItem";
            _GoToToolStripMenuItem.Size = new Size(144, 22);
            _GoToToolStripMenuItem.Text = "Go To";
            //
            // ContextRefresh
            //
            _ContextRefresh.Name = "_ContextRefresh";
            _ContextRefresh.Size = new Size(144, 22);
            _ContextRefresh.Text = "Refresh";
            //
            // RemoveHotkeyToolStripMenuItem
            //
            _RemoveHotkeyToolStripMenuItem.Name = "_RemoveHotkeyToolStripMenuItem";
            _RemoveHotkeyToolStripMenuItem.Size = new Size(144, 22);
            _RemoveHotkeyToolStripMenuItem.Text = "Remove Bind";
            //
            // RenameToolStripMenuItem
            //
            _RenameToolStripMenuItem.Name = "_RenameToolStripMenuItem";
            _RenameToolStripMenuItem.Size = new Size(144, 22);
            _RenameToolStripMenuItem.Text = "Rename";
            //
            // ContextHotKey
            //
            _ContextHotKey.Name = "_ContextHotKey";
            _ContextHotKey.Size = new Size(144, 22);
            _ContextHotKey.Text = "Set Bind";
            //
            // SetVolumeToolStripMenuItem
            //
            _SetVolumeToolStripMenuItem.Name = "_SetVolumeToolStripMenuItem";
            _SetVolumeToolStripMenuItem.Size = new Size(144, 22);
            _SetVolumeToolStripMenuItem.Text = "Set Volume";
            //
            // TrimToolStripMenuItem
            //
            _TrimToolStripMenuItem.Name = "_TrimToolStripMenuItem";
            _TrimToolStripMenuItem.Size = new Size(144, 22);
            _TrimToolStripMenuItem.Text = "Trim";
            //
            // LoadToolStripMenuItem
            //
            _LoadToolStripMenuItem.Name = "_LoadToolStripMenuItem";
            _LoadToolStripMenuItem.Size = new Size(144, 22);
            _LoadToolStripMenuItem.Text = "Load";
            //
            // PlayKeyButton
            //
            _PlayKeyButton.Anchor   = AnchorStyles.Bottom | AnchorStyles.Right;
            _PlayKeyButton.Location = new Point(380, 297);
            _PlayKeyButton.Name     = "_PlayKeyButton";
            _PlayKeyButton.Size     = new Size(192, 23);
            _PlayKeyButton.TabIndex = 8;
            _PlayKeyButton.Text     = "Play key: \"\"{0}\"\" (change)";
            _PlayKeyButton.UseVisualStyleBackColor = true;
            //
            // StatusLabel
            //
            StatusLabel.Anchor   = AnchorStyles.Bottom | AnchorStyles.Left;
            StatusLabel.AutoSize = true;
            StatusLabel.Location = new Point(177, 302);
            StatusLabel.Name     = "StatusLabel";
            StatusLabel.Size     = new Size(60, 13);
            StatusLabel.TabIndex = 9;
            StatusLabel.Text     = "Status: Idle";
            //
            // SystemTrayIcon
            //
            _SystemTrayIcon.ContextMenuStrip = SystemTrayMenu;
            _SystemTrayIcon.Icon             = (Icon)resources.GetObject("SystemTrayIcon.Icon");
            _SystemTrayIcon.Text             = "SLAM";
            //
            // SystemTrayMenu
            //
            SystemTrayMenu.Items.AddRange(new ToolStripItem[] { _SystemTrayMenu_Open, _SystemTrayMenu_StartStop, ToolStripSeparator1, _SystemTrayMenu_Exit });
            SystemTrayMenu.Name = "SystemTrayMenu";
            SystemTrayMenu.Size = new Size(104, 76);
            //
            // SystemTrayMenu_Open
            //
            _SystemTrayMenu_Open.Name = "_SystemTrayMenu_Open";
            _SystemTrayMenu_Open.Size = new Size(103, 22);
            _SystemTrayMenu_Open.Text = "Open";
            //
            // SystemTrayMenu_StartStop
            //
            _SystemTrayMenu_StartStop.Name = "_SystemTrayMenu_StartStop";
            _SystemTrayMenu_StartStop.Size = new Size(103, 22);
            _SystemTrayMenu_StartStop.Text = "Start";
            //
            // ToolStripSeparator1
            //
            ToolStripSeparator1.Name = "ToolStripSeparator1";
            ToolStripSeparator1.Size = new Size(100, 6);
            //
            // SystemTrayMenu_Exit
            //
            _SystemTrayMenu_Exit.Name = "_SystemTrayMenu_Exit";
            _SystemTrayMenu_Exit.Size = new Size(103, 22);
            _SystemTrayMenu_Exit.Text = "Exit";
            //
            // YTButton
            //
            _YTButton.Anchor   = AnchorStyles.Bottom | AnchorStyles.Left;
            _YTButton.Image    = (Image)resources.GetObject("YTButton.Image");
            _YTButton.Location = new Point(68, 297);
            _YTButton.Name     = "_YTButton";
            _YTButton.Size     = new Size(22, 23);
            _YTButton.TabIndex = 10;
            _YTButton.UseVisualStyleBackColor = true;
            //
            // Form1
            //
            AutoScaleDimensions = new SizeF(6.0f, 13.0f);
            AutoScaleMode       = AutoScaleMode.Font;
            ClientSize          = new Size(584, 361);
            Controls.Add(_YTButton);
            Controls.Add(StatusLabel);
            Controls.Add(_PlayKeyButton);
            Controls.Add(_ChangeDirButton);
            Controls.Add(ProgressBar1);
            Controls.Add(_StartButton);
            Controls.Add(_TrackList);
            Controls.Add(_ImportButton);
            Controls.Add(Label1);
            Controls.Add(_GameSelector);
            Icon          = (Icon)resources.GetObject("$this.Icon");
            MinimumSize   = new Size(500, 400);
            Name          = "Form1";
            StartPosition = FormStartPosition.CenterScreen;
            Text          = "Source Live Audio Mixer";
            TrackContextMenu.ResumeLayout(false);
            SystemTrayMenu.ResumeLayout(false);
            Load        += new EventHandler(Form1_Load);
            FormClosing += new FormClosingEventHandler(Form1_FormClosing);
            Resize      += new EventHandler(Form1_Resize);
            ResumeLayout(false);
            PerformLayout();
        }
 private void InitializeComponent()
 {
     components = new System.ComponentModel.Container();
     System.Windows.Forms.DataGridViewCellStyle     dataGridViewCellStyle  = new System.Windows.Forms.DataGridViewCellStyle();
     System.Windows.Forms.DataGridViewCellStyle     dataGridViewCellStyle2 = new System.Windows.Forms.DataGridViewCellStyle();
     System.Windows.Forms.DataGridViewCellStyle     dataGridViewCellStyle3 = new System.Windows.Forms.DataGridViewCellStyle();
     System.Windows.Forms.DataGridViewCellStyle     dataGridViewCellStyle4 = new System.Windows.Forms.DataGridViewCellStyle();
     System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(PICkit2V2.FormMultiWinProgMem));
     dataGridProgramMemory             = new System.Windows.Forms.DataGridView();
     comboBoxProgMemView               = new System.Windows.Forms.ComboBox();
     displayDataSource                 = new System.Windows.Forms.Label();
     labelDataSource                   = new System.Windows.Forms.Label();
     contextMenuStrip1                 = new System.Windows.Forms.ContextMenuStrip(components);
     toolStripMenuItemContextSelectAll = new System.Windows.Forms.ToolStripMenuItem();
     toolStripMenuItemContextCopy      = new System.Windows.Forms.ToolStripMenuItem();
     ((System.ComponentModel.ISupportInitialize)dataGridProgramMemory).BeginInit();
     contextMenuStrip1.SuspendLayout();
     SuspendLayout();
     dataGridProgramMemory.AllowUserToAddRows       = false;
     dataGridProgramMemory.AllowUserToDeleteRows    = false;
     dataGridProgramMemory.AllowUserToResizeColumns = false;
     dataGridProgramMemory.AllowUserToResizeRows    = false;
     dataGridProgramMemory.Anchor                        = (System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right);
     dataGridProgramMemory.BackgroundColor               = System.Drawing.SystemColors.Window;
     dataGridProgramMemory.CellBorderStyle               = System.Windows.Forms.DataGridViewCellBorderStyle.None;
     dataGridViewCellStyle.Alignment                     = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
     dataGridViewCellStyle.BackColor                     = System.Drawing.SystemColors.Control;
     dataGridViewCellStyle.Font                          = new System.Drawing.Font("Microsoft Sans Serif", 8.25f, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, 0);
     dataGridViewCellStyle.ForeColor                     = System.Drawing.SystemColors.WindowText;
     dataGridViewCellStyle.SelectionBackColor            = System.Drawing.SystemColors.Highlight;
     dataGridViewCellStyle.SelectionForeColor            = System.Drawing.SystemColors.HighlightText;
     dataGridViewCellStyle.WrapMode                      = System.Windows.Forms.DataGridViewTriState.True;
     dataGridProgramMemory.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle;
     dataGridProgramMemory.ColumnHeadersHeightSizeMode   = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.DisableResizing;
     dataGridProgramMemory.ColumnHeadersVisible          = false;
     dataGridProgramMemory.ContextMenuStrip              = contextMenuStrip1;
     dataGridViewCellStyle2.Alignment                    = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
     dataGridViewCellStyle2.BackColor                    = System.Drawing.SystemColors.Window;
     dataGridViewCellStyle2.Font                         = new System.Drawing.Font("Microsoft Sans Serif", 8.25f, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, 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.False;
     dataGridProgramMemory.DefaultCellStyle              = dataGridViewCellStyle2;
     dataGridProgramMemory.Enabled                       = false;
     dataGridProgramMemory.Location                      = new System.Drawing.Point(12, 39);
     dataGridProgramMemory.Name                          = "dataGridProgramMemory";
     dataGridViewCellStyle3.Alignment                    = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
     dataGridViewCellStyle3.BackColor                    = System.Drawing.SystemColors.Control;
     dataGridViewCellStyle3.Font                         = new System.Drawing.Font("Microsoft Sans Serif", 8.25f, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, 0);
     dataGridViewCellStyle3.ForeColor                    = System.Drawing.SystemColors.WindowText;
     dataGridViewCellStyle3.SelectionBackColor           = System.Drawing.SystemColors.Highlight;
     dataGridViewCellStyle3.SelectionForeColor           = System.Drawing.SystemColors.HighlightText;
     dataGridViewCellStyle3.WrapMode                     = System.Windows.Forms.DataGridViewTriState.True;
     dataGridProgramMemory.RowHeadersDefaultCellStyle    = dataGridViewCellStyle3;
     dataGridProgramMemory.RowHeadersVisible             = false;
     dataGridProgramMemory.RowHeadersWidth               = 75;
     dataGridProgramMemory.RowHeadersWidthSizeMode       = System.Windows.Forms.DataGridViewRowHeadersWidthSizeMode.DisableResizing;
     dataGridViewCellStyle4.Alignment                    = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
     dataGridProgramMemory.RowsDefaultCellStyle          = dataGridViewCellStyle4;
     dataGridProgramMemory.RowTemplate.Height            = 17;
     dataGridProgramMemory.ScrollBars                    = System.Windows.Forms.ScrollBars.Vertical;
     dataGridProgramMemory.SelectionMode                 = System.Windows.Forms.DataGridViewSelectionMode.CellSelect;
     dataGridProgramMemory.Size                          = new System.Drawing.Size(512, 123);
     dataGridProgramMemory.TabIndex                      = 5;
     dataGridProgramMemory.CellMouseDown                += new System.Windows.Forms.DataGridViewCellMouseEventHandler(dataGridProgramMemory_CellMouseDown);
     dataGridProgramMemory.CellEndEdit                  += new System.Windows.Forms.DataGridViewCellEventHandler(progMemEdit);
     comboBoxProgMemView.BackColor                       = System.Drawing.SystemColors.Info;
     comboBoxProgMemView.DropDownStyle                   = System.Windows.Forms.ComboBoxStyle.DropDownList;
     comboBoxProgMemView.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25f, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, 0);
     comboBoxProgMemView.FormattingEnabled = true;
     comboBoxProgMemView.Items.AddRange(new object[3]
     {
         "Hex Only",
         "Word ASCII",
         "Byte ASCII"
     });
     comboBoxProgMemView.Location = new System.Drawing.Point(12, 11);
     comboBoxProgMemView.Margin   = new System.Windows.Forms.Padding(2);
     comboBoxProgMemView.Name     = "comboBoxProgMemView";
     comboBoxProgMemView.Size     = new System.Drawing.Size(91, 21);
     comboBoxProgMemView.TabIndex = 6;
     comboBoxProgMemView.SelectionChangeCommitted += new System.EventHandler(comboBoxProgMemView_SelectionChangeCommitted);
     displayDataSource.Anchor      = (System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right);
     displayDataSource.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
     displayDataSource.Font        = new System.Drawing.Font("Microsoft Sans Serif", 8.25f, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, 0);
     displayDataSource.Location    = new System.Drawing.Point(172, 13);
     displayDataSource.Margin      = new System.Windows.Forms.Padding(2, 0, 2, 0);
     displayDataSource.MinimumSize = new System.Drawing.Size(279, 16);
     displayDataSource.Name        = "displayDataSource";
     displayDataSource.Size        = new System.Drawing.Size(352, 16);
     displayDataSource.TabIndex    = 8;
     displayDataSource.Text        = "None (Empty/Erased)";
     displayDataSource.UseCompatibleTextRendering = true;
     labelDataSource.Anchor   = (System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right);
     labelDataSource.AutoSize = true;
     labelDataSource.Font     = new System.Drawing.Font("Microsoft Sans Serif", 8.25f, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, 0);
     labelDataSource.Location = new System.Drawing.Point(119, 14);
     labelDataSource.Margin   = new System.Windows.Forms.Padding(2, 0, 2, 0);
     labelDataSource.Name     = "labelDataSource";
     labelDataSource.Size     = new System.Drawing.Size(51, 13);
     labelDataSource.TabIndex = 7;
     labelDataSource.Text     = "Source:";
     contextMenuStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[2]
     {
         toolStripMenuItemContextSelectAll,
         toolStripMenuItemContextCopy
     });
     contextMenuStrip1.Name = "contextMenuStrip1";
     contextMenuStrip1.Size = new System.Drawing.Size(164, 48);
     toolStripMenuItemContextSelectAll.Name = "toolStripMenuItemContextSelectAll";
     toolStripMenuItemContextSelectAll.ShortcutKeyDisplayString = "Ctrl-A";
     toolStripMenuItemContextSelectAll.Size   = new System.Drawing.Size(163, 22);
     toolStripMenuItemContextSelectAll.Text   = "Select All";
     toolStripMenuItemContextSelectAll.Click += new System.EventHandler(toolStripMenuItemContextSelectAll_Click);
     toolStripMenuItemContextCopy.Name        = "toolStripMenuItemContextCopy";
     toolStripMenuItemContextCopy.ShortcutKeyDisplayString = "Ctrl-C";
     toolStripMenuItemContextCopy.Size   = new System.Drawing.Size(163, 22);
     toolStripMenuItemContextCopy.Text   = "Copy";
     toolStripMenuItemContextCopy.Click += new System.EventHandler(toolStripMenuItemContextCopy_Click);
     base.AutoScaleDimensions            = new System.Drawing.SizeF(96f, 96f);
     base.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Dpi;
     base.ClientSize    = new System.Drawing.Size(536, 174);
     base.Controls.Add(displayDataSource);
     base.Controls.Add(labelDataSource);
     base.Controls.Add(comboBoxProgMemView);
     base.Controls.Add(dataGridProgramMemory);
     base.Icon          = (System.Drawing.Icon)resources.GetObject("$this.Icon");
     MinimumSize        = new System.Drawing.Size(200, 110);
     base.Name          = "FormMultiWinProgMem";
     base.SizeGripStyle = System.Windows.Forms.SizeGripStyle.Show;
     base.StartPosition = System.Windows.Forms.FormStartPosition.Manual;
     Text              = "PICkit 2 Program Memory";
     base.Resize      += new System.EventHandler(FormMultiWinProgMem_Resize);
     base.FormClosing += new System.Windows.Forms.FormClosingEventHandler(FormMultiWinProgMem_FormClosing);
     base.ResizeEnd   += new System.EventHandler(FormMultiWinProgMem_ResizeEnd);
     ((System.ComponentModel.ISupportInitialize)dataGridProgramMemory).EndInit();
     contextMenuStrip1.ResumeLayout(false);
     ResumeLayout(false);
     PerformLayout();
 }
        private void InitializeComponent()
        {
            cmsHistory                    = new ContextMenuStrip();
            tsmiOpen                      = new ToolStripMenuItem();
            tsmiOpenURL                   = new ToolStripMenuItem();
            tsmiOpenShortenedURL          = new ToolStripMenuItem();
            tsmiOpenThumbnailURL          = new ToolStripMenuItem();
            tsmiOpenDeletionURL           = new ToolStripMenuItem();
            tssOpen1                      = new ToolStripSeparator();
            tsmiOpenFile                  = new ToolStripMenuItem();
            tsmiOpenFolder                = new ToolStripMenuItem();
            tsmiCopy                      = new ToolStripMenuItem();
            tsmiCopyURL                   = new ToolStripMenuItem();
            tsmiCopyShortenedURL          = new ToolStripMenuItem();
            tsmiCopyThumbnailURL          = new ToolStripMenuItem();
            tsmiCopyDeletionURL           = new ToolStripMenuItem();
            tssCopy1                      = new ToolStripSeparator();
            tsmiCopyFile                  = new ToolStripMenuItem();
            tsmiCopyImage                 = new ToolStripMenuItem();
            tsmiCopyText                  = new ToolStripMenuItem();
            tssCopy2                      = new ToolStripSeparator();
            tsmiCopyHTMLLink              = new ToolStripMenuItem();
            tsmiCopyHTMLImage             = new ToolStripMenuItem();
            tsmiCopyHTMLLinkedImage       = new ToolStripMenuItem();
            tssCopy3                      = new ToolStripSeparator();
            tsmiCopyForumLink             = new ToolStripMenuItem();
            tsmiCopyForumImage            = new ToolStripMenuItem();
            tsmiCopyForumLinkedImage      = new ToolStripMenuItem();
            tssCopy4                      = new ToolStripSeparator();
            tsmiCopyFilePath              = new ToolStripMenuItem();
            tsmiCopyFileName              = new ToolStripMenuItem();
            tsmiCopyFileNameWithExtension = new ToolStripMenuItem();
            tsmiCopyFolder                = new ToolStripMenuItem();
            tsmiShow                      = new ToolStripMenuItem();
            tsmiShowImagePreview          = new ToolStripMenuItem();
            tsmiShowMoreInfo              = new ToolStripMenuItem();
            cmsHistory.SuspendLayout();

            //
            // cmsHistory
            //
            cmsHistory.Items.AddRange(new ToolStripItem[]
            {
                tsmiOpen,
                tsmiCopy,
                tsmiShow
            });
            cmsHistory.Name            = "cmsHistory";
            cmsHistory.ShowImageMargin = false;
            cmsHistory.Size            = new Size(128, 92);
            cmsHistory.Enabled         = false;
            //
            // tsmiOpen
            //
            tsmiOpen.DropDownItems.AddRange(new ToolStripItem[]
            {
                tsmiOpenURL,
                tsmiOpenShortenedURL,
                tsmiOpenThumbnailURL,
                tsmiOpenDeletionURL,
                tssOpen1,
                tsmiOpenFile,
                tsmiOpenFolder
            });
            tsmiOpen.Name = "tsmiOpen";
            tsmiOpen.Size = new Size(127, 22);
            tsmiOpen.Text = Resources.HistoryItemManager_InitializeComponent_Open;
            //
            // tsmiOpenURL
            //
            tsmiOpenURL.Name   = "tsmiOpenURL";
            tsmiOpenURL.Size   = new Size(156, 22);
            tsmiOpenURL.Text   = Resources.HistoryItemManager_InitializeComponent_URL;
            tsmiOpenURL.Click += tsmiOpenURL_Click;
            //
            // tsmiOpenShortenedURL
            //
            tsmiOpenShortenedURL.Name   = "tsmiOpenShortenedURL";
            tsmiOpenShortenedURL.Size   = new Size(156, 22);
            tsmiOpenShortenedURL.Text   = Resources.HistoryItemManager_InitializeComponent_Shortened_URL;
            tsmiOpenShortenedURL.Click += tsmiOpenShortenedURL_Click;
            //
            // tsmiOpenThumbnailURL
            //
            tsmiOpenThumbnailURL.Name   = "tsmiOpenThumbnailURL";
            tsmiOpenThumbnailURL.Size   = new Size(156, 22);
            tsmiOpenThumbnailURL.Text   = Resources.HistoryItemManager_InitializeComponent_Thumbnail_URL;
            tsmiOpenThumbnailURL.Click += tsmiOpenThumbnailURL_Click;
            //
            // tsmiOpenDeletionURL
            //
            tsmiOpenDeletionURL.Name   = "tsmiOpenDeletionURL";
            tsmiOpenDeletionURL.Size   = new Size(156, 22);
            tsmiOpenDeletionURL.Text   = Resources.HistoryItemManager_InitializeComponent_Deletion_URL;
            tsmiOpenDeletionURL.Click += tsmiOpenDeletionURL_Click;
            //
            // tssOpen1
            //
            tssOpen1.Name = "tssOpen1";
            tssOpen1.Size = new Size(153, 6);
            //
            // tsmiOpenFile
            //
            tsmiOpenFile.Name   = "tsmiOpenFile";
            tsmiOpenFile.Size   = new Size(156, 22);
            tsmiOpenFile.Text   = Resources.HistoryItemManager_InitializeComponent_File;
            tsmiOpenFile.Click += tsmiOpenFile_Click;
            //
            // tsmiOpenFolder
            //
            tsmiOpenFolder.Name   = "tsmiOpenFolder";
            tsmiOpenFolder.Size   = new Size(156, 22);
            tsmiOpenFolder.Text   = Resources.HistoryItemManager_InitializeComponent_Folder;
            tsmiOpenFolder.Click += tsmiOpenFolder_Click;
            //
            // tsmiCopy
            //
            tsmiCopy.DropDownItems.AddRange(new ToolStripItem[]
            {
                tsmiCopyURL,
                tsmiCopyShortenedURL,
                tsmiCopyThumbnailURL,
                tsmiCopyDeletionURL,
                tssCopy1,
                tsmiCopyFile,
                tsmiCopyImage,
                tsmiCopyText,
                tssCopy2,
                tsmiCopyHTMLLink,
                tsmiCopyHTMLImage,
                tsmiCopyHTMLLinkedImage,
                tssCopy3,
                tsmiCopyForumLink,
                tsmiCopyForumImage,
                tsmiCopyForumLinkedImage,
                tssCopy4,
                tsmiCopyFilePath,
                tsmiCopyFileName,
                tsmiCopyFileNameWithExtension,
                tsmiCopyFolder
            });
            tsmiCopy.Name = "tsmiCopy";
            tsmiCopy.Size = new Size(127, 22);
            tsmiCopy.Text = Resources.HistoryItemManager_InitializeComponent_Copy;
            //
            // tsmiCopyURL
            //
            tsmiCopyURL.Name   = "tsmiCopyURL";
            tsmiCopyURL.Size   = new Size(233, 22);
            tsmiCopyURL.Text   = Resources.HistoryItemManager_InitializeComponent_URL;
            tsmiCopyURL.Click += tsmiCopyURL_Click;
            //
            // tsmiCopyShortenedURL
            //
            tsmiCopyShortenedURL.Name   = "tsmiCopyShortenedURL";
            tsmiCopyShortenedURL.Size   = new Size(233, 22);
            tsmiCopyShortenedURL.Text   = Resources.HistoryItemManager_InitializeComponent_Shortened_URL;
            tsmiCopyShortenedURL.Click += tsmiCopyShortenedURL_Click;
            //
            // tsmiCopyThumbnailURL
            //
            tsmiCopyThumbnailURL.Name   = "tsmiCopyThumbnailURL";
            tsmiCopyThumbnailURL.Size   = new Size(233, 22);
            tsmiCopyThumbnailURL.Text   = Resources.HistoryItemManager_InitializeComponent_Thumbnail_URL;
            tsmiCopyThumbnailURL.Click += tsmiCopyThumbnailURL_Click;
            //
            // tsmiCopyDeletionURL
            //
            tsmiCopyDeletionURL.Name   = "tsmiCopyDeletionURL";
            tsmiCopyDeletionURL.Size   = new Size(233, 22);
            tsmiCopyDeletionURL.Text   = Resources.HistoryItemManager_InitializeComponent_Deletion_URL;
            tsmiCopyDeletionURL.Click += tsmiCopyDeletionURL_Click;
            //
            // tssCopy1
            //
            tssCopy1.Name = "tssCopy1";
            tssCopy1.Size = new Size(230, 6);
            //
            // tsmiCopyFile
            //
            tsmiCopyFile.Name   = "tsmiCopyFile";
            tsmiCopyFile.Size   = new Size(233, 22);
            tsmiCopyFile.Text   = Resources.HistoryItemManager_InitializeComponent_File;
            tsmiCopyFile.Click += tsmiCopyFile_Click;
            //
            // tsmiCopyImage
            //
            tsmiCopyImage.Name   = "tsmiCopyImage";
            tsmiCopyImage.Size   = new Size(233, 22);
            tsmiCopyImage.Text   = Resources.HistoryItemManager_InitializeComponent_Image;
            tsmiCopyImage.Click += tsmiCopyImage_Click;
            //
            // tsmiCopyText
            //
            tsmiCopyText.Name   = "tsmiCopyText";
            tsmiCopyText.Size   = new Size(233, 22);
            tsmiCopyText.Text   = Resources.HistoryItemManager_InitializeComponent_Text;
            tsmiCopyText.Click += tsmiCopyText_Click;
            //
            // tssCopy2
            //
            tssCopy2.Name = "tssCopy2";
            tssCopy2.Size = new Size(230, 6);
            //
            // tsmiCopyHTMLLink
            //
            tsmiCopyHTMLLink.Name   = "tsmiCopyHTMLLink";
            tsmiCopyHTMLLink.Size   = new Size(233, 22);
            tsmiCopyHTMLLink.Text   = Resources.HistoryItemManager_InitializeComponent_HTML_link;
            tsmiCopyHTMLLink.Click += tsmiCopyHTMLLink_Click;
            //
            // tsmiCopyHTMLImage
            //
            tsmiCopyHTMLImage.Name   = "tsmiCopyHTMLImage";
            tsmiCopyHTMLImage.Size   = new Size(233, 22);
            tsmiCopyHTMLImage.Text   = Resources.HistoryItemManager_InitializeComponent_HTML_image;
            tsmiCopyHTMLImage.Click += tsmiCopyHTMLImage_Click;
            //
            // tsmiCopyHTMLLinkedImage
            //
            tsmiCopyHTMLLinkedImage.Name   = "tsmiCopyHTMLLinkedImage";
            tsmiCopyHTMLLinkedImage.Size   = new Size(233, 22);
            tsmiCopyHTMLLinkedImage.Text   = Resources.HistoryItemManager_InitializeComponent_HTML_linked_image;
            tsmiCopyHTMLLinkedImage.Click += tsmiCopyHTMLLinkedImage_Click;
            //
            // tssCopy3
            //
            tssCopy3.Name = "tssCopy3";
            tssCopy3.Size = new Size(230, 6);
            //
            // tsmiCopyForumLink
            //
            tsmiCopyForumLink.Name   = "tsmiCopyForumLink";
            tsmiCopyForumLink.Size   = new Size(233, 22);
            tsmiCopyForumLink.Text   = Resources.HistoryItemManager_InitializeComponent_Forum__BBCode__link;
            tsmiCopyForumLink.Click += tsmiCopyForumLink_Click;
            //
            // tsmiCopyForumImage
            //
            tsmiCopyForumImage.Name   = "tsmiCopyForumImage";
            tsmiCopyForumImage.Size   = new Size(233, 22);
            tsmiCopyForumImage.Text   = Resources.HistoryItemManager_InitializeComponent_Forum__BBCode__image;
            tsmiCopyForumImage.Click += tsmiCopyForumImage_Click;
            //
            // tsmiCopyForumLinkedImage
            //
            tsmiCopyForumLinkedImage.Name   = "tsmiCopyForumLinkedImage";
            tsmiCopyForumLinkedImage.Size   = new Size(233, 22);
            tsmiCopyForumLinkedImage.Text   = Resources.HistoryItemManager_InitializeComponent_Forum__BBCode__linked_image;
            tsmiCopyForumLinkedImage.Click += tsmiCopyForumLinkedImage_Click;
            //
            // tssCopy4
            //
            tssCopy4.Name = "tssCopy4";
            tssCopy4.Size = new Size(230, 6);
            //
            // tsmiCopyFilePath
            //
            tsmiCopyFilePath.Name   = "tsmiCopyFilePath";
            tsmiCopyFilePath.Size   = new Size(233, 22);
            tsmiCopyFilePath.Text   = Resources.HistoryItemManager_InitializeComponent_File_path;
            tsmiCopyFilePath.Click += tsmiCopyFilePath_Click;
            //
            // tsmiCopyFileName
            //
            tsmiCopyFileName.Name   = "tsmiCopyFileName";
            tsmiCopyFileName.Size   = new Size(233, 22);
            tsmiCopyFileName.Text   = Resources.HistoryItemManager_InitializeComponent_File_name;
            tsmiCopyFileName.Click += tsmiCopyFileName_Click;
            //
            // tsmiCopyFileNameWithExtension
            //
            tsmiCopyFileNameWithExtension.Name   = "tsmiCopyFileNameWithExtension";
            tsmiCopyFileNameWithExtension.Size   = new Size(233, 22);
            tsmiCopyFileNameWithExtension.Text   = Resources.HistoryItemManager_InitializeComponent_File_name_with_extension;
            tsmiCopyFileNameWithExtension.Click += tsmiCopyFileNameWithExtension_Click;
            //
            // tsmiCopyFolder
            //
            tsmiCopyFolder.Name   = "tsmiCopyFolder";
            tsmiCopyFolder.Size   = new Size(233, 22);
            tsmiCopyFolder.Text   = Resources.HistoryItemManager_InitializeComponent_Folder;
            tsmiCopyFolder.Click += tsmiCopyFolder_Click;
            //
            // tsmiShow
            //
            tsmiShow.DropDownItems.AddRange(new ToolStripItem[]
            {
                tsmiShowImagePreview,
                tsmiShowMoreInfo
            });
            tsmiShow.Name = "tsmiShow";
            tsmiShow.Size = new Size(127, 22);
            tsmiShow.Text = Resources.HistoryItemManager_InitializeComponent_Show;
            //
            // tsmiShowImagePreview
            //
            tsmiShowImagePreview.Name   = "tsmiShowImagePreview";
            tsmiShowImagePreview.Size   = new Size(127, 22);
            tsmiShowImagePreview.Text   = Resources.HistoryItemManager_InitializeComponent_Image_preview;
            tsmiShowImagePreview.Click += tsmiShowImagePreview_Click;
            //
            // tsmiShowMoreInfo
            //
            tsmiShowMoreInfo.Name   = "tsmiShowMoreInfo";
            tsmiShowMoreInfo.Size   = new Size(127, 22);
            tsmiShowMoreInfo.Text   = Resources.HistoryItemManager_InitializeComponent_More_info;
            tsmiShowMoreInfo.Click += tsmiShowMoreInfo_Click;

            cmsHistory.ResumeLayout(false);
        }
 private void InitializeComponent()
 {
     components         = (IContainer) new Container();
     label1             = new Label();
     nudMinutes         = new NumericUpDown();
     nudTenth           = new NumericUpDown();
     nudSeconds         = new NumericUpDown();
     nudPlayerNo        = new NumericUpDown();
     lblPlayerNo        = new Label();
     contextMenuStrip1  = new ContextMenuStrip(components);
     aToolStripMenuItem = new ToolStripMenuItem();
     bToolStripMenuItem = new ToolStripMenuItem();
     cToolStripMenuItem = new ToolStripMenuItem();
     dToolStripMenuItem = new ToolStripMenuItem();
     mToolStripMenuItem = new ToolStripMenuItem();
     nudMinutes.BeginInit();
     nudTenth.BeginInit();
     nudSeconds.BeginInit();
     nudPlayerNo.BeginInit();
     contextMenuStrip1.SuspendLayout();
     SuspendLayout();
     label1.AutoSize     = true;
     label1.ImeMode      = ImeMode.NoControl;
     label1.Location     = new Point(31, 8);
     label1.Name         = "label1";
     label1.Size         = new Size(267, 13);
     label1.TabIndex     = 3;
     label1.Text         = "Nr.                    Min.                   Sek.                 Zehntel";
     nudMinutes.Location = new Point(90, 24);
     nudMinutes.Maximum  = new Decimal(new int[4]
     {
         120,
         0,
         0,
         0
     });
     nudMinutes.Name      = "nudMinutes";
     nudMinutes.Size      = new Size(72, 20);
     nudMinutes.TabIndex  = 0;
     nudMinutes.TextAlign = HorizontalAlignment.Center;
     nudTenth.Location    = new Point(246, 24);
     nudTenth.Maximum     = new Decimal(new int[4]
     {
         9,
         0,
         0,
         0
     });
     nudTenth.Name       = "nudTenth";
     nudTenth.Size       = new Size(72, 20);
     nudTenth.TabIndex   = 2;
     nudTenth.TextAlign  = HorizontalAlignment.Center;
     nudSeconds.Location = new Point(168, 24);
     nudSeconds.Maximum  = new Decimal(new int[4]
     {
         59,
         0,
         0,
         0
     });
     nudSeconds.Name              = "nudSeconds";
     nudSeconds.Size              = new Size(72, 20);
     nudSeconds.TabIndex          = 1;
     nudSeconds.TextAlign         = HorizontalAlignment.Center;
     nudPlayerNo.ContextMenuStrip = contextMenuStrip1;
     nudPlayerNo.Location         = new Point(12, 24);
     nudPlayerNo.Maximum          = new Decimal(new int[4]
     {
         99,
         0,
         0,
         0
     });
     nudPlayerNo.Name          = "nudPlayerNo";
     nudPlayerNo.Size          = new Size(72, 20);
     nudPlayerNo.TabIndex      = 6;
     nudPlayerNo.TextAlign     = HorizontalAlignment.Center;
     nudPlayerNo.ValueChanged += new EventHandler(nudPlayerNo_ValueChanged);
     lblPlayerNo.AutoSize      = true;
     lblPlayerNo.Font          = new Font("Microsoft Sans Serif", 8.25f, FontStyle.Bold, GraphicsUnit.Point, (byte)0);
     lblPlayerNo.Location      = new Point(34, 47);
     lblPlayerNo.Name          = "lblPlayerNo";
     lblPlayerNo.Size          = new Size(0, 13);
     lblPlayerNo.TabIndex      = 7;
     contextMenuStrip1.Items.AddRange(new ToolStripItem[5]
     {
         (ToolStripItem)aToolStripMenuItem,
         (ToolStripItem)bToolStripMenuItem,
         (ToolStripItem)cToolStripMenuItem,
         (ToolStripItem)dToolStripMenuItem,
         (ToolStripItem)mToolStripMenuItem
     });
     contextMenuStrip1.Name    = "contextMenuStrip1";
     contextMenuStrip1.Size    = new Size(94, 114);
     aToolStripMenuItem.Name   = "aToolStripMenuItem";
     aToolStripMenuItem.Size   = new Size(152, 22);
     aToolStripMenuItem.Text   = "A";
     aToolStripMenuItem.Click += new EventHandler(setPenaltyToOfficial_Click);
     bToolStripMenuItem.Name   = "bToolStripMenuItem";
     bToolStripMenuItem.Size   = new Size(152, 22);
     bToolStripMenuItem.Text   = "B";
     bToolStripMenuItem.Click += new EventHandler(setPenaltyToOfficial_Click);
     cToolStripMenuItem.Name   = "cToolStripMenuItem";
     cToolStripMenuItem.Size   = new Size(152, 22);
     cToolStripMenuItem.Text   = "C";
     cToolStripMenuItem.Click += new EventHandler(setPenaltyToOfficial_Click);
     dToolStripMenuItem.Name   = "dToolStripMenuItem";
     dToolStripMenuItem.Size   = new Size(152, 22);
     dToolStripMenuItem.Text   = "D";
     dToolStripMenuItem.Click += new EventHandler(setPenaltyToOfficial_Click);
     mToolStripMenuItem.Name   = "mToolStripMenuItem";
     mToolStripMenuItem.Size   = new Size(152, 22);
     mToolStripMenuItem.Text   = "M";
     mToolStripMenuItem.Click += new EventHandler(setPenaltyToOfficial_Click);
     AutoScaleDimensions       = new SizeF(6f, 13f);
     AutoScaleMode             = AutoScaleMode.Font;
     ClientSize = new Size(341, 65);
     Controls.Add((Control)lblPlayerNo);
     Controls.Add((Control)label1);
     Controls.Add((Control)nudPlayerNo);
     Controls.Add((Control)nudMinutes);
     Controls.Add((Control)nudTenth);
     Controls.Add((Control)nudSeconds);
     FormBorderStyle = FormBorderStyle.FixedSingle;
     KeyPreview      = true;
     MaximizeBox     = false;
     MinimizeBox     = false;
     Name            = nameof(EditPenalty);
     StartPosition   = FormStartPosition.CenterParent;
     Text            = "Strafzeit editieren";
     FormClosing    += new FormClosingEventHandler(EditPenalty_FormClosing);
     KeyDown        += new KeyEventHandler(EditPenalty_KeyDown);
     nudMinutes.EndInit();
     nudTenth.EndInit();
     nudSeconds.EndInit();
     nudPlayerNo.EndInit();
     contextMenuStrip1.ResumeLayout(false);
     ResumeLayout(false);
     PerformLayout();
 }
Exemple #29
0
        private void InitializeComponent()
        {
            //First Launch Setup
            if (Properties.Settings.Default.firstLaunch)
            {
                //Create Log Directory
                string appdata = Environment.ExpandEnvironmentVariables("%APPDATA%");
                if (!Directory.Exists(appdata + @"\ScreenGrabber\"))
                {
                    Directory.CreateDirectory(appdata + @"\ScreenGrabber\");
                }
                LogHelper.Log(LogTarget.File, "Beginning application initialization...");
                //Initialize our list of lists.
                List <List <string> > bigList = new List <List <string> >();
                Properties.Settings.Default.windowList = bigList;
                Properties.Settings.Default.Save();
                LogHelper.Log(LogTarget.File, "Initialization complete.");
                LogHelper.Log(LogTarget.File, "Launching configuration window.");
                //Launch the configuration Form
                Form2 form2 = new Form2();
                if (form2.ShowDialog() == DialogResult.Cancel)
                {
                    MessageBox.Show("The application will not function correctly if you do not configure it.",
                                    "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
                    LogHelper.Log(LogTarget.File, "Configuration aborted before completion, First launch failed. Application will not function correctly until configuration has been completed.");
                }
                else
                {
                    LogHelper.Log(LogTarget.File, "First launch completed successfully without errors.");
                }
                //First Launch is over
                Properties.Settings.Default.firstLaunch = false;
                Properties.Settings.Default.Save();
            }
            LogHelper.Log(LogTarget.File, "Application launched, beginning initialization.");
            //create our bgworker thread
            bgWorker = new BackgroundWorker();
            bgWorker.WorkerSupportsCancellation = true;
            bgWorker.DoWork             += BgWorker_DoWork;
            bgWorker.RunWorkerCompleted += BgWorker_RunWorkerCompleted;
            //set up the tray icon
            TrayIcon = new NotifyIcon();
            string title = "Screen Grabber - Unattached";
            string info  = "Unattached";

            TrayIcon.BalloonTipIcon  = ToolTipIcon.Info;
            TrayIcon.BalloonTipText  = info;
            TrayIcon.BalloonTipTitle = title;
            TrayIcon.Text            = title;


            //The icon is added to the project resources.
            //Here I assume that the name of the file is 'TrayIcon.ico'
            TrayIcon.Icon = Properties.Resources.TrayIcon;

            //Optional - handle doubleclicks on the icon:
            TrayIcon.DoubleClick += TrayIcon_DoubleClick;

            //Optional - Add a context menu to the TrayIcon:
            TrayIconContextMenu   = new ContextMenuStrip();
            CloseMenuItem         = new ToolStripMenuItem();
            AttachMenuItem        = new ToolStripMenuItem();
            ConfigurationMenuItem = new ToolStripMenuItem();
            LogMenuItem           = new ToolStripMenuItem();
            TrayIconContextMenu.SuspendLayout();

            //
            // TrayIconContextMenu
            //
            this.TrayIconContextMenu.Items.AddRange(new ToolStripItem[] {
                this.AttachMenuItem, this.LogMenuItem, this.ConfigurationMenuItem, this.CloseMenuItem
            });
            this.TrayIconContextMenu.Name = "TrayIconContextMenu";
            this.TrayIconContextMenu.Size = new Size(153, 70);
            //
            // Attach/Unattach
            //
            this.AttachMenuItem.Name   = "AttachItem";
            this.AttachMenuItem.Size   = new Size(152, 22);
            this.AttachMenuItem.Text   = "Attach";
            this.AttachMenuItem.Click += new EventHandler(this.AttachItem_Click);
            //
            // Log
            //
            this.LogMenuItem.Name   = "LogItem";
            this.LogMenuItem.Size   = new Size(152, 22);
            this.LogMenuItem.Text   = "Open Log";
            this.LogMenuItem.Click += new EventHandler(this.LogItem_Click);
            //
            // Configuration
            //
            this.ConfigurationMenuItem.Name   = "ConfigurationItem";
            this.ConfigurationMenuItem.Size   = new Size(152, 22);
            this.ConfigurationMenuItem.Text   = "Configuration";
            this.ConfigurationMenuItem.Click += new EventHandler(this.Configuration_Click);
            //
            // CloseMenuItem
            //
            this.CloseMenuItem.Name   = "CloseMenuItem";
            this.CloseMenuItem.Size   = new Size(152, 22);
            this.CloseMenuItem.Text   = "Exit";
            this.CloseMenuItem.Click += new EventHandler(this.CloseMenuItem_Click);

            TrayIconContextMenu.ResumeLayout(false);
            TrayIcon.ContextMenuStrip = TrayIconContextMenu;
            //make sure the IIS service is running, and start it if it isn't.
            ServiceController sc = new ServiceController("World Wide Web Publishing Service");

            if ((sc.Status.Equals(ServiceControllerStatus.Stopped) || sc.Status.Equals(ServiceControllerStatus.StopPending)))
            {
                LogHelper.Log(LogTarget.File, "IIS Service is stopped, starting service...");
                sc.Start();
            }
            else
            {
                LogHelper.Log(LogTarget.File, "IIS Service is running.");
            }
            LogHelper.Log(LogTarget.File, "Initialization complete.");
        }
Exemple #30
0
        /// <summary>
        /// Méthode requise pour la prise en charge du concepteur - ne modifiez pas
        /// le contenu de cette méthode avec l'éditeur de code.
        /// </summary>
        private void InitializeComponent()
        {
            components = new Container();
            ComponentResourceManager resources = new ComponentResourceManager(typeof(MatrixControl));

            _splitContainer                 = new SplitContainer();
            _selector                       = new TypeUserPanel();
            _matrix                         = new MatrixPanel();
            _hScrollBar                     = new HScrollBar();
            _vScrollBar                     = new VScrollBar();
            _cntxtMenuStrip                 = new ContextMenuStrip(components);
            CntxtItemMoveUp                 = new ToolStripMenuItem();
            CntxtItemMoveDown               = new ToolStripMenuItem();
            CntxtItemShowConsumers          = new ToolStripMenuItem();
            CntxtItemShowProvidedInterfaces = new ToolStripMenuItem();
            CntxtItemShowRequiredInterfaces = new ToolStripMenuItem();
            _paritionToolStripMenuItem      = new ToolStripMenuItem();
            _cntxtMenuStripMatrixPanel      = new ContextMenuStrip(components);
            _showRelationsToolStripMenuItem = new ToolStripMenuItem();
            _showProvidersToolStripMenuItem = new ToolStripMenuItem();
            _showConsumersToolStripMenuItem = new ToolStripMenuItem();
            _splitContainer.Panel1.SuspendLayout();
            _splitContainer.Panel2.SuspendLayout();
            _splitContainer.SuspendLayout();
            _cntxtMenuStrip.SuspendLayout();
            _cntxtMenuStripMatrixPanel.SuspendLayout();
            SuspendLayout();
            //
            // _splitContainer
            //
            _splitContainer.BackColor  = SystemColors.ControlLight;
            _splitContainer.FixedPanel = FixedPanel.Panel1;
            _splitContainer.Location   = new Point(0, 0);
            _splitContainer.Name       = "_splitContainer";
            //
            // _splitContainer.Panel1
            //
            _splitContainer.Panel1.BackColor = SystemColors.Control;
            _splitContainer.Panel1.Controls.Add(_selector);
            //
            // _splitContainer.Panel2
            //
            _splitContainer.Panel2.BackColor = SystemColors.Control;
            _splitContainer.Panel2.Controls.Add(_matrix);
            _splitContainer.Size             = new Size(825, 289);
            _splitContainer.SplitterDistance = 265;
            _splitContainer.SplitterWidth    = 3;
            _splitContainer.TabIndex         = 2;
            _splitContainer.SplitterMoved   += SplitContainer1SplitterMoved;
            //
            // _selector
            //
            _selector.BackColor = SystemColors.Control;
            _selector.Font      = new Font("Segoe UI", 9F);
            _selector.ForeColor = SystemColors.ControlText;
            _selector.Location  = new Point(0, 3);
            _selector.Name      = "_selector";
            _selector.Size      = new Size(265, 216);
            _selector.TabIndex  = 0;
            //
            // _matrix
            //
            _matrix.AllowDrop = true;
            _matrix.BackColor = SystemColors.Control;
            _matrix.Font      = new Font("Segoe UI", 9F);
            _matrix.Location  = new Point(1, 3);
            _matrix.Name      = "_matrix";
            _matrix.Size      = new Size(501, 216);
            _matrix.TabIndex  = 0;
            //
            // _hScrollBar
            //
            _hScrollBar.Location = new Point(270, 292);
            _hScrollBar.Name     = "_hScrollBar";
            _hScrollBar.Size     = new Size(555, 17);
            _hScrollBar.TabIndex = 1;
            _hScrollBar.Scroll  += HScrollBar1Scroll;
            //
            // _vScrollBar
            //
            _vScrollBar.Location    = new Point(828, 0);
            _vScrollBar.Maximum     = 160;
            _vScrollBar.Name        = "_vScrollBar";
            _vScrollBar.Size        = new Size(17, 289);
            _vScrollBar.SmallChange = 10;
            _vScrollBar.TabIndex    = 3;
            _vScrollBar.Value       = 16;
            _vScrollBar.Scroll     += VScrollBar1Scroll;
            //
            // _cntxtMenuStrip
            //
            _cntxtMenuStrip.Font = new Font("Tahoma", 8.25F, FontStyle.Regular, GraphicsUnit.Point, 0);
            _cntxtMenuStrip.Items.AddRange(new ToolStripItem[] {
                CntxtItemMoveUp,
                CntxtItemMoveDown,
                _paritionToolStripMenuItem,
                CntxtItemShowConsumers,
                CntxtItemShowProvidedInterfaces,
                CntxtItemShowRequiredInterfaces
            });
            _cntxtMenuStrip.LayoutStyle = ToolStripLayoutStyle.HorizontalStackWithOverflow;
            _cntxtMenuStrip.RenderMode  = ToolStripRenderMode.Professional;
            _cntxtMenuStrip.Size        = new Size(153, 92);
            //
            // cntxtItemMoveUp
            //
            CntxtItemMoveUp.Enabled = false;
            CntxtItemMoveUp.Image   = Resources.UpArrow1;
            CntxtItemMoveUp.Name    = "CntxtItemMoveUp";
            CntxtItemMoveUp.Size    = new Size(152, 22);
            CntxtItemMoveUp.Text    = "Move Up";
            CntxtItemMoveUp.Click  += CntxtItemMoveUpClick;
            //
            // cntxtItemMoveDown
            //
            CntxtItemMoveDown.Enabled = false;
            CntxtItemMoveDown.Image   = Resources.DownArrow;
            CntxtItemMoveDown.Name    = "CntxtItemMoveDown";
            CntxtItemMoveDown.Size    = new Size(152, 22);
            CntxtItemMoveDown.Text    = "Move Down";
            CntxtItemMoveDown.Click  += CntxtItemMoveDownClick;

            //
            // CntxtItemShowConsumerElements
            //
            CntxtItemShowConsumers.Enabled = true;
            CntxtItemShowConsumers.Name    = "CntxtItemShowConsumers";
            CntxtItemShowConsumers.Size    = new Size(152, 22);
            CntxtItemShowConsumers.Text    = "Show Element Consumers";
            CntxtItemShowConsumers.Click  += ShowElementConsumersReportToolStripMenuItemClick;

            //
            // CntxtItemShowProviderElements
            //
            CntxtItemShowProvidedInterfaces.Enabled = true;
            CntxtItemShowProvidedInterfaces.Name    = "CntxtItemShowProvidedInterfaces";
            CntxtItemShowProvidedInterfaces.Size    = new Size(152, 22);
            CntxtItemShowProvidedInterfaces.Text    = "Show Element Provided Interface";
            CntxtItemShowProvidedInterfaces.Click  += ShowElementProvidedInterfacesReportToolStripMenuItemClick;

            //
            // CntxtItemShowRequiredElements
            //
            CntxtItemShowRequiredInterfaces.Enabled = true;
            CntxtItemShowRequiredInterfaces.Name    = "CntxtItemShowRequiredInterfaces";
            CntxtItemShowRequiredInterfaces.Size    = new Size(152, 22);
            CntxtItemShowRequiredInterfaces.Text    = "Show Element Required Interface";
            CntxtItemShowRequiredInterfaces.Click  += ShowInterfaceRequiredInterfacesReportToolStripMenuItemClick;

            //
            // paritionToolStripMenuItem
            //
            _paritionToolStripMenuItem.Enabled = false;
            _paritionToolStripMenuItem.Image   = Resources.Partition;
            _paritionToolStripMenuItem.Name    = "_paritionToolStripMenuItem";
            _paritionToolStripMenuItem.Size    = new Size(152, 22);
            _paritionToolStripMenuItem.Text    = "Partition";
            _paritionToolStripMenuItem.Click  += ParitionToolStripMenuItemClick;
            //
            // _cntxtMenuStripMatrixPanel
            //
            _cntxtMenuStripMatrixPanel.Items.AddRange(new ToolStripItem[] {
                _showRelationsToolStripMenuItem, _showConsumersToolStripMenuItem, _showProvidersToolStripMenuItem
            });
            _cntxtMenuStripMatrixPanel.Name = "_cntxtMenuStripMatrixPanel";
            _cntxtMenuStripMatrixPanel.Size = new Size(155, 26);
            //
            // showRelationsToolStripMenuItem
            //
            _showRelationsToolStripMenuItem.Name   = "_showRelationsToolStripMenuItem";
            _showRelationsToolStripMenuItem.Size   = new Size(154, 22);
            _showRelationsToolStripMenuItem.Text   = "Show Relations";
            _showRelationsToolStripMenuItem.Click += ShowRelationsToolStripMenuItemClick;
            //
            // showProvidersToolStripMenuItem
            //
            _showProvidersToolStripMenuItem.Name   = "_showProvidersToolStripMenuItem";
            _showProvidersToolStripMenuItem.Size   = new Size(154, 22);
            _showProvidersToolStripMenuItem.Text   = "Show Relation Providers";
            _showProvidersToolStripMenuItem.Click += ShowProvidersToolStripMenuItemClick;
            //
            // showConsumersToolStripMenuItem
            //
            _showConsumersToolStripMenuItem.Name   = "_showConsumersToolStripMenuItem";
            _showConsumersToolStripMenuItem.Size   = new Size(154, 22);
            _showConsumersToolStripMenuItem.Text   = "Show Relation Consumers";
            _showConsumersToolStripMenuItem.Click += ShowConsumersToolStripMenuItemClick;
            //
            // MatrixControl
            //
            Controls.Add(_vScrollBar);
            Controls.Add(_splitContainer);
            Controls.Add(_hScrollBar);
            DoubleBuffered  = true;
            Enabled         = false;
            Name            = "MatrixControl";
            Size            = new Size(848, 315);
            Resize         += MatrixControlResize;
            EnabledChanged += MatrixControlEnabledChanged;
            _splitContainer.Panel1.ResumeLayout(false);
            _splitContainer.Panel2.ResumeLayout(false);
            _splitContainer.ResumeLayout(false);
            _cntxtMenuStrip.ResumeLayout(false);
            _cntxtMenuStripMatrixPanel.ResumeLayout(false);
            ResumeLayout(false);
        }