コード例 #1
0
        public override MenuItem CloneMenu()
        {
            GMenuItem mi = new GMenuItem(this);

            mi._shortcut = _shortcut;
            mi.Visible   = this.Visible;
            mi.Enabled   = this.Enabled;
            return(mi);
        }
コード例 #2
0
ファイル: GFrame.cs プロジェクト: nospy/EasyConnect
        /// <summary>
        /// �f�U�C�i �T�|�[�g�ɕK�v�ȃ��\�b�h�ł��B���̃��\�b�h�̓�e��
        /// �R�[�h �G�f�B�^�ŕύX���Ȃ��ł��������B
        /// </summary>
        private void InitializeComponent()
        {
            System.Resources.ResourceManager resources = new System.Resources.ResourceManager(typeof(GFrame));
            this._menu = new System.Windows.Forms.MainMenu();
            this._menuFile = new GMainMenuItem();
            this._menuNewConnection = new GMenuItem();
            this._menuSerialNewConnection = new GMenuItem();
            this._menuCygwinNewConnection = new GMenuItem();
            this._menuSFUNewConnection = new GMenuItem();
            this._menuBarFile1 = new GMenuItem();
            this._menuOpenShortcut = new GMenuItem();
            this._menuSaveShortcut = new GMenuItem();
            this._menuBarFile2 = new GMenuItem();
            this._menuReceiveFile = new GMenuItem();
            this._menuSendFile = new GMenuItem();
            this._menuBarBeforeMRU = new GMenuItem();
            this._menuBarAfterMRU = new GMenuItem();
            this._menuQuit = new GMenuItem();
            this._menuEdit = new GMainMenuItem();
            this._menuCopy = new GMenuItem();
            this._menuPaste = new GMenuItem();
            this._menuBarEdit1 = new GMenuItem();
            this._menuCopyAsLook = new GMenuItem();
            this._menuCopyToFile = new GMenuItem();
            this._menuPasteFromFile = new GMenuItem();
            this._menuBarEdit2 = new GMenuItem();
            this._menuClearScreen = new GMenuItem();
            this._menuClearBuffer = new GMenuItem();
            this._menuBarEdit3 = new GMenuItem();
            this._menuSelectAll = new GMenuItem();
            this._menuFreeSelectionMode = new GMenuItem();
            this._menuAutoSelectionMode = new GMenuItem();
            this._menuConsole = new GMainMenuItem();
            this._menuConsoleClose = new GMenuItem();
            this._menuRenameTab = new GMenuItem();
            this._menuConsoleReproduce = new GMenuItem();
            this._menuBarConsole1 = new GMenuItem();
            this._menuNewLine = new GMenuItem();
            this._menuNewLine_CR = new GMenuItem();
            this._menuNewLine_LF = new GMenuItem();
            this._menuNewLine_CRLF = new GMenuItem();
            this._menuLocalEcho = new GMenuItem();
            this._menuLineFeedRule = new GMenuItem();
            this._menuSendSpecial = new GMenuItem();
            this._menuSendBreak = new GMenuItem();
            this._menuAreYouThere = new GMenuItem();
            this._menuSerialConfig = new GMenuItem();
            this._menuResetTerminal = new GMenuItem();
            this._menuBarConsole2 = new GMenuItem();
            this._menuSuspendLog = new GMenuItem();
            this._menuCommentLog = new GMenuItem();
            this._menuChangeLog = new GMenuItem();
            this._menuBarConsole3 = new GMenuItem();
            this._menuServerInfo = new GMenuItem();
            this._menuTool = new GMainMenuItem();
            this._menuKeyGen = new GMenuItem();
            this._menuChangePassphrase = new GMenuItem();
            this._menuBarTool1 = new GMenuItem();
            this._menuMacro = new GMenuItem();
            this._menuBarTool2 = new GMenuItem();
            this._menuOption = new GMenuItem();
            this._menuMacroConfig = new GMenuItem();
            this._menuStopMacro = new GMenuItem();
            this._menuBarMacro = new GMenuItem();
            this._menuWindow = new GMainMenuItem();
            this._menuFrameStyle = new GMenuItem();
            this._menuFrameStyleSingle = new GMenuItem();
            this._menuFrameStyleDivHorizontal = new GMenuItem();
            this._menuFrameStyleDivVertical = new GMenuItem();
            this._menuFrameStyleDivHorizontal3 = new GMenuItem();
            this._menuFrameStyleDivVertical3 = new GMenuItem();
            this._menuPane = new GMenuItem();
            this._menuMovePane = new GMenuItem();
            this._menuMovePaneUp = new GMenuItem();
            this._menuMovePaneDown = new GMenuItem();
            this._menuMovePaneLeft = new GMenuItem();
            this._menuMovePaneRight = new GMenuItem();
            this._menuExpandPane = new GMenuItem();
            this._menuShrinkPane = new GMenuItem();
            this._menuBarWindow1 = new GMenuItem();
            this._menuTab = new GMenuItem();
            this._menuPrevTab = new GMenuItem();
            this._menuNextTab = new GMenuItem();
            this._menuMoveTabToPrev = new GMenuItem();
            this._menuMoveTabToNext = new GMenuItem();
            this._menuBarWindow2 = new GMenuItem();
            this._menuCloseAll = new GMenuItem();
            this._menuCloseAllDisconnected = new GMenuItem();
            this._menuBarWindow3 = new GMenuItem();
            this._menuHelp = new GMainMenuItem();
            this._menuAboutBox = new GMenuItem();
            this._menuProductWeb = new GMenuItem();
            this._statusBar = new System.Windows.Forms.StatusBar();
            this._textStatusBarPanel = new System.Windows.Forms.StatusBarPanel();
            this._bellIndicateStatusBarPanel = new System.Windows.Forms.StatusBarPanel();
            this._caretPosStatusBarPanel = new System.Windows.Forms.StatusBarPanel();
            this._menuEncoding = new GMenuItem();
            this._menuEditRenderProfile = new GMenuItem();
            this._menuLaunchPortforwarding = new GMenuItem();
            ((System.ComponentModel.ISupportInitialize)(this._textStatusBarPanel)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this._bellIndicateStatusBarPanel)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this._caretPosStatusBarPanel)).BeginInit();
            this.SuspendLayout();
            //
            // _menu
            //
            this._menu.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
                                                                                  this._menuFile,
                                                                                  this._menuEdit,
                                                                                  this._menuConsole,
                                                                                  this._menuTool,
                                                                                  this._menuWindow,
                                                                                  this._menuHelp});
            //
            // _menuFile
            //
            this._menuFile.Index = 0;
            this._menuFile.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
                                                                                      this._menuNewConnection,
                                                                                      this._menuSerialNewConnection,
                                                                                      this._menuCygwinNewConnection,
                                                                                      this._menuSFUNewConnection,
                                                                                      this._menuBarFile1,
                                                                                      this._menuOpenShortcut,
                                                                                      this._menuSaveShortcut,
                                                                                      this._menuBarFile2,
                                                                                      this._menuReceiveFile,
                                                                                      this._menuSendFile,
                                                                                      this._menuBarBeforeMRU,
                                                                                      this._menuBarAfterMRU,
                                                                                      this._menuQuit});
            //
            // _menuNewConnection
            //
            this._menuNewConnection.Index = 0;
            this._menuNewConnection.Click += new System.EventHandler(this.OnMenu);
            this._menuNewConnection.CID = (int)CID.NewConnection;
            //
            // _menuSerialNewConnection
            //
            this._menuSerialNewConnection.Index = 1;
            this._menuSerialNewConnection.Click += new System.EventHandler(this.OnMenu);
            this._menuSerialNewConnection.CID = (int)CID.NewSerialConnection;
            //
            // _menuCygwinNewConnection
            //
            this._menuCygwinNewConnection.Index = 2;
            this._menuCygwinNewConnection.Click += new System.EventHandler(this.OnMenu);
            this._menuCygwinNewConnection.CID = (int)CID.NewCygwinConnection;
            //
            // _menuSFUNewConnection
            //
            this._menuSFUNewConnection.Index = 3;
            this._menuSFUNewConnection.Click += new System.EventHandler(this.OnMenu);
            this._menuSFUNewConnection.CID = (int)CID.NewSFUConnection;
            //
            // _menuBarFile1
            //
            this._menuBarFile1.Index = 4;
            this._menuBarFile1.Text = "-";
            //
            // _menuOpenShortcut
            //
            this._menuOpenShortcut.Index = 5;
            this._menuOpenShortcut.Click += new System.EventHandler(this.OnMenu);
            this._menuOpenShortcut.CID = (int)CID.OpenShortcut;
            //
            // _menuSaveShortcut
            //
            this._menuSaveShortcut.Enabled = false;
            this._menuSaveShortcut.Index = 6;
            this._menuSaveShortcut.Click += new System.EventHandler(this.OnMenu);
            this._menuSaveShortcut.CID = (int)CID.SaveShortcut;
            //
            // _menuBarFile2
            //
            this._menuBarFile2.Index = 7;
            this._menuBarFile2.Text = "-";
            //
            // _menuReceiveFile
            //
            this._menuReceiveFile.Enabled = false;
            this._menuReceiveFile.Index = 8;
            this._menuReceiveFile.Click += new System.EventHandler(this.OnMenu);
            this._menuReceiveFile.CID = (int)CID.ReceiveFile;
            //
            // _menuSendFile
            //
            this._menuSendFile.Enabled = false;
            this._menuSendFile.Index = 9;
            this._menuSendFile.Click += new System.EventHandler(this.OnMenu);
            this._menuSendFile.CID = (int)CID.SendFile;
            //
            // _menuBarBeforeMRU
            //
            this._menuBarBeforeMRU.Index = 10;
            this._menuBarBeforeMRU.Text = "-";
            //
            // _menuBarAfterMRU
            //
            this._menuBarAfterMRU.Index = 11;
            this._menuBarAfterMRU.Text = "-";
            //
            // _menuQuit
            //
            this._menuQuit.Index = 12;
            this._menuQuit.Click += new System.EventHandler(this.OnMenu);
            this._menuQuit.CID = (int)CID.Quit;
            //
            // _menuEdit
            //
            this._menuEdit.Index = 1;
            this._menuEdit.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
                                                                                      this._menuCopy,
                                                                                      this._menuPaste,
                                                                                      this._menuBarEdit1,
                                                                                      this._menuCopyAsLook,
                                                                                      this._menuCopyToFile,
                                                                                      this._menuPasteFromFile,
                                                                                      this._menuBarEdit2,
                                                                                      this._menuClearScreen,
                                                                                      this._menuClearBuffer,
                                                                                      this._menuBarEdit3,
                                                                                      this._menuSelectAll,
                                                                                      this._menuFreeSelectionMode,
                                                                                      this._menuAutoSelectionMode});

            this._menuEdit.Popup += new System.EventHandler(this.AdjustEditMenu);
            //
            // _menuCopy
            //
            this._menuCopy.Enabled = false;
            this._menuCopy.Index = 0;
            this._menuCopy.Click += new System.EventHandler(this.OnMenu);
            this._menuCopy.CID = (int)CID.Copy;
            //
            // _menuPaste
            //
            this._menuPaste.Enabled = false;
            this._menuPaste.Index = 1;
            this._menuPaste.Click += new System.EventHandler(this.OnMenu);
            this._menuPaste.CID = (int)CID.Paste;
            //
            // _menuBarEdit1
            //
            this._menuBarEdit1.Index = 2;
            this._menuBarEdit1.Text = "-";
            //
            // _menuCopyAsLook
            //
            this._menuCopyAsLook.Enabled = false;
            this._menuCopyAsLook.Index = 3;
            this._menuCopyAsLook.Click += new System.EventHandler(this.OnMenu);
            this._menuCopyAsLook.CID = (int)CID.CopyAsLook;
            //
            // _menuCopyToFile
            //
            this._menuCopyToFile.Enabled = false;
            this._menuCopyToFile.Index = 4;
            this._menuCopyToFile.Click += new System.EventHandler(this.OnMenu);
            this._menuCopyToFile.CID = (int)CID.CopyToFile;
            //
            // _menuPasteFromFile
            //
            this._menuPasteFromFile.Enabled = false;
            this._menuPasteFromFile.Index = 5;
            this._menuPasteFromFile.Click += new System.EventHandler(this.OnMenu);
            this._menuPasteFromFile.CID = (int)CID.PasteFromFile;
            //
            // _menuBarEdit2
            //
            this._menuBarEdit2.Index = 6;
            this._menuBarEdit2.Text = "-";
            //
            // _menuClearScreen
            //
            this._menuClearScreen.Index = 7;
            this._menuClearScreen.Click += new System.EventHandler(this.OnMenu);
            this._menuClearScreen.CID = (int)CID.ClearScreen;
            //
            // _menuClearBuffer
            //
            this._menuClearBuffer.Index = 8;
            this._menuClearBuffer.Click += new System.EventHandler(this.OnMenu);
            this._menuClearBuffer.CID = (int)CID.ClearBuffer;
            //
            // _menuBarEdit3
            //
            this._menuBarEdit3.Index = 9;
            this._menuBarEdit3.Text = "-";

            //
            // _menuSelectAll
            //
            this._menuSelectAll.Index = 10;
            this._menuSelectAll.Click += new System.EventHandler(this.OnMenu);
            this._menuSelectAll.CID = (int)CID.SelectAll;
            //
            // _menuFreeSelectionMode
            //
            this._menuFreeSelectionMode.Index = 11;
            this._menuFreeSelectionMode.Click += new System.EventHandler(this.OnMenu);
            this._menuFreeSelectionMode.CID = (int)CID.ToggleFreeSelectionMode;
            //
            // _menuAutoSelectionMode
            //
            this._menuAutoSelectionMode.Index = 12;
            this._menuAutoSelectionMode.Click += new System.EventHandler(this.OnMenu);
            this._menuAutoSelectionMode.CID = (int)CID.ToggleAutoSelectionMode;
            //
            // _menuConsole
            //
            this._menuConsole.Index = 2;
            this._menuConsole.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
                                                                                         this._menuConsoleClose,
                                                                                         this._menuConsoleReproduce,
                                                                                         this._menuBarConsole1,
                                                                                         this._menuNewLine,
                                                                                         this._menuLineFeedRule,
                                                                                         this._menuEncoding,
                                                                                         this._menuLocalEcho,
                                                                                         this._menuSendSpecial,
                                                                                         this._menuBarConsole2,
                                                                                         this._menuSuspendLog,
                                                                                         this._menuCommentLog,
                                                                                         this._menuChangeLog,
                                                                                         this._menuBarConsole3,
                                                                                         this._menuEditRenderProfile,
                                                                                         this._menuServerInfo,
                                                                                         this._menuRenameTab});

            this._menuConsole.Popup += new EventHandler(AdjustConsoleMenu);

            //
            // _menuConsoleClose
            //
            this._menuConsoleClose.Enabled = false;
            this._menuConsoleClose.Index = 0;
            this._menuConsoleClose.Click += new System.EventHandler(this.OnMenu);
            this._menuConsoleClose.CID = (int)CID.Close;
            //
            // _menuConsoleReproduce
            //
            this._menuConsoleReproduce.Enabled = false;
            this._menuConsoleReproduce.Index = 1;
            this._menuConsoleReproduce.Click += new System.EventHandler(this.OnMenu);
            this._menuConsoleReproduce.CID = (int)CID.Reproduce;
            //
            // _menuBarConsole1
            //
            this._menuBarConsole1.Index = 2;
            this._menuBarConsole1.Text = "-";
            //
            // _menuNewLine
            //
            this._menuNewLine.Enabled = false;
            this._menuNewLine.Index = 3;
            this._menuNewLine.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
                                                                                         this._menuNewLine_CR,
                                                                                         this._menuNewLine_LF,
                                                                                         this._menuNewLine_CRLF});

            //
            // _menuNewLine_CR
            //
            this._menuNewLine_CR.Index = 0;
            this._menuNewLine_CR.Text = "CR";
            this._menuNewLine_CR.Click += new System.EventHandler(this.OnChangeNewLine);
            //
            // _menuNewLine_LF
            //
            this._menuNewLine_LF.Index = 1;
            this._menuNewLine_LF.Text = "LF";
            this._menuNewLine_LF.Click += new System.EventHandler(this.OnChangeNewLine);
            //
            // _menuNewLine_CRLF
            //
            this._menuNewLine_CRLF.Index = 2;
            this._menuNewLine_CRLF.Text = "CR+LF";
            this._menuNewLine_CRLF.Click += new System.EventHandler(this.OnChangeNewLine);
            //
            // _menuEncoding
            //
            this._menuEncoding.Enabled = false;
            this._menuEncoding.Index = 4;
            //
            // _menuLineFeedRule
            //
            this._menuLineFeedRule.Enabled = false;
            this._menuLineFeedRule.Index = 5;
            this._menuLineFeedRule.Click += new System.EventHandler(this.OnMenu);
            this._menuLineFeedRule.CID = (int)CID.LineFeedRule;
            //
            // _menuLocalEcho
            //
            this._menuLocalEcho.Enabled = false;
            this._menuLocalEcho.Index = 6;
            this._menuLocalEcho.Click += new System.EventHandler(this.OnMenu);
            this._menuLocalEcho.CID = (int)CID.ToggleLocalEcho;
            //
            // _menuSendSpecial
            //
            this._menuSendSpecial.Enabled = false;
            this._menuSendSpecial.Index = 7;
            this._menuSendSpecial.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
                                                                                         this._menuSendBreak,
                                                                                         this._menuAreYouThere,
                                                                                         this._menuSerialConfig,
                                                                                         this._menuResetTerminal
            });

            //
            // _menuSendBreak
            //
            this._menuSendBreak.Index = 0;
            this._menuSendBreak.Click += new System.EventHandler(this.OnMenu);
            this._menuSendBreak.CID = (int)CID.SendBreak;
            //
            // _menuAreYouThere
            //
            this._menuAreYouThere.Index = 1;
            this._menuAreYouThere.Click += new System.EventHandler(this.OnMenu);
            this._menuAreYouThere.CID = (int)CID.AreYouThere;
            //
            // _menuSerialConfig
            //
            this._menuSerialConfig.Index = 2;
            this._menuSerialConfig.Click += new System.EventHandler(this.OnMenu);
            this._menuSerialConfig.CID = (int)CID.SerialConfig;
            //
            // _menuResetTerminal
            //
            this._menuResetTerminal.Index = 3;
            this._menuResetTerminal.Click += new System.EventHandler(this.OnMenu);
            this._menuResetTerminal.CID = (int)CID.ResetTerminal;
            //
            // _menuBarConsole2
            //
            this._menuBarConsole2.Index = 8;
            this._menuBarConsole2.Text = "-";
            //
            // _menuSuspendLog
            //
            this._menuSuspendLog.Enabled = false;
            this._menuSuspendLog.Index = 9;
            this._menuSuspendLog.Click += new System.EventHandler(this.OnMenu);
            this._menuSuspendLog.CID = (int)CID.ToggleLogSuspension;
            //
            // _menuCommentLog
            //
            this._menuCommentLog.Enabled = false;
            this._menuCommentLog.Index = 10;
            this._menuCommentLog.Click += new System.EventHandler(this.OnMenu);
            this._menuCommentLog.CID = (int)CID.CommentLog;
            //
            // _menuChangeLog
            //
            this._menuChangeLog.Enabled = false;
            this._menuChangeLog.Index = 11;
            this._menuChangeLog.Click += new System.EventHandler(this.OnMenu);
            this._menuChangeLog.CID = (int)CID.ChangeLogFile;
            //
            // _menuBarConsole3
            //
            this._menuBarConsole3.Index = 12;
            this._menuBarConsole3.Text = "-";
            //
            // _menuEditRenderProfile
            //
            this._menuEditRenderProfile.Enabled = false;
            this._menuEditRenderProfile.Index = 13;
            this._menuEditRenderProfile.Click += new System.EventHandler(this.OnMenu);
            this._menuEditRenderProfile.CID = (int)CID.EditRenderProfile;
            //
            // _menuServerInfo
            //
            this._menuServerInfo.Enabled = false;
            this._menuServerInfo.Index = 14;
            this._menuServerInfo.Click += new System.EventHandler(this.OnMenu);
            this._menuServerInfo.CID = (int)CID.ShowServerInfo;
            //
            // _menuRenameTab
            //
            this._menuRenameTab.Enabled = false;
            this._menuRenameTab.Index = 15;
            this._menuRenameTab.Click += new System.EventHandler(this.OnMenu);
            this._menuRenameTab.CID = (int)CID.RenameTab;
            //
            // _menuTool
            //
            this._menuTool.Index = 3;
            this._menuTool.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
                                                                                      this._menuKeyGen,
                                                                                      this._menuChangePassphrase,
                                                                                      this._menuLaunchPortforwarding,
                                                                                      this._menuBarTool1,
                                                                                      this._menuMacro,
                                                                                      this._menuBarTool2,
                                                                                      this._menuOption});

            //
            // _menuKeyGen
            //
            this._menuKeyGen.Index = 0;
            this._menuKeyGen.Click += new System.EventHandler(this.OnMenu);
            this._menuKeyGen.CID = (int)CID.KeyGen;
            //
            // _menuChangePassphrase
            //
            this._menuChangePassphrase.Index = 1;
            this._menuChangePassphrase.Click += new System.EventHandler(this.OnMenu);
            this._menuChangePassphrase.CID = (int)CID.ChangePassphrase;
            //
            // _menuLaunchPortforwarding
            //
            this._menuLaunchPortforwarding.Index = 2;
            this._menuLaunchPortforwarding.Click += new System.EventHandler(this.OnMenu);
            this._menuLaunchPortforwarding.CID = (int)CID.Portforwarding;
            //
            // _menuBarTool1
            //
            this._menuBarTool1.Index = 3;
            this._menuBarTool1.Text = "-";
            //
            // _menuMacro
            //
            this._menuMacro.Index = 4;
            this._menuMacro.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
                                                                                        this._menuMacroConfig,
                                                                                        this._menuStopMacro,
                                                                                        this._menuBarMacro});
            //
            // _menuBarTool2
            //
            this._menuBarTool2.Index = 5;
            this._menuBarTool2.Text = "-";
            //
            // _menuOption
            //
            this._menuOption.Index = 6;
            this._menuOption.Click += new System.EventHandler(this.OnMenu);
            this._menuOption.CID = (int)CID.OptionDialog;
            //
            // _menuMacroConfig
            //
            this._menuMacroConfig.Index = 0;
            this._menuMacroConfig.Click += new System.EventHandler(this.OnMenu);
            this._menuMacroConfig.CID = (int)CID.MacroConfig;
            //
            // _menuStopMacro
            //
            this._menuStopMacro.Index = 1;
            this._menuStopMacro.Enabled = false;
            this._menuStopMacro.Click += new System.EventHandler(this.OnMenu);
            this._menuStopMacro.CID = (int)CID.StopMacro;
            //
            // _menuBarMacro
            //
            this._menuBarMacro.Index = 2;
            this._menuBarMacro.Text = "-";
            //
            // _menuWindow
            //
            this._menuWindow.Popup += new EventHandler(OnWindowMenuClicked);
            this._menuWindow.Index = 4;
            this._menuWindow.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
                                                                                        this._menuFrameStyle,
                                                                                        this._menuBarWindow1,
                                                                                        this._menuPane,
                                                                                        this._menuTab,
                                                                                        this._menuBarWindow2,
                                                                                        this._menuCloseAll,
                                                                                        this._menuCloseAllDisconnected,
                                                                                        this._menuBarWindow3});

            //
            // _menuFrameStyle
            //
            this._menuFrameStyle.Index = 0;
            this._menuFrameStyle.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
                                                                                            this._menuFrameStyleSingle,
                                                                                            this._menuFrameStyleDivHorizontal,
                                                                                            this._menuFrameStyleDivVertical,
                                                                                            this._menuFrameStyleDivHorizontal3,
                                                                                            this._menuFrameStyleDivVertical3});

            //
            // _menuFrameStyleSingle
            //
            this._menuFrameStyleSingle.Index = 0;
            this._menuFrameStyleSingle.Click += new System.EventHandler(this.OnMenu);
            this._menuFrameStyleSingle.CID = (int)CID.FrameStyleSingle;
            //
            // _menuFrameStyleDivHorizontal
            //
            this._menuFrameStyleDivHorizontal.Index = 1;
            this._menuFrameStyleDivHorizontal.Click += new System.EventHandler(this.OnMenu);
            this._menuFrameStyleDivHorizontal.CID = (int)CID.FrameStyleDivHorizontal;
            //
            // _menuFrameStyleDivVertical
            //
            this._menuFrameStyleDivVertical.Index = 2;
            this._menuFrameStyleDivVertical.Click += new System.EventHandler(this.OnMenu);
            this._menuFrameStyleDivVertical.CID = (int)CID.FrameStyleDivVertical;
            //
            // _menuFrameStyleDivHorizontal3
            //
            this._menuFrameStyleDivHorizontal3.Index = 3;
            this._menuFrameStyleDivHorizontal3.Click += new System.EventHandler(this.OnMenu);
            this._menuFrameStyleDivHorizontal3.CID = (int)CID.FrameStyleDivHorizontal3;
            //
            // _menuFrameStyleDivVertical3
            //
            this._menuFrameStyleDivVertical3.Index = 4;
            this._menuFrameStyleDivVertical3.Click += new System.EventHandler(this.OnMenu);
            this._menuFrameStyleDivVertical3.CID = (int)CID.FrameStyleDivVertical3;
            //
            // _menuBarWindow1
            //
            this._menuBarWindow1.Index = 1;
            this._menuBarWindow1.Text = "-";
            //
            // _menuPane
            //
            this._menuPane.Index = 2;
            this._menuPane.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
                                                                                            this._menuMovePane,
                                                                                            this._menuExpandPane,
                                                                                            this._menuShrinkPane});

            //
            // _menuMovePane
            //
            this._menuMovePane.Index = 0;
            this._menuMovePane.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
                                                                                          this._menuMovePaneUp,
                                                                                          this._menuMovePaneDown,
                                                                                          this._menuMovePaneLeft,
                                                                                          this._menuMovePaneRight});

            //
            // _menuMovePaneUp
            //
            this._menuMovePaneUp.Index = 0;
            this._menuMovePaneUp.Click += new System.EventHandler(this.OnMenu);
            this._menuMovePaneUp.CID = (int)CID.MovePaneUp;
            //
            // _menuMovePaneDown
            //
            this._menuMovePaneDown.Index = 1;
            this._menuMovePaneDown.Click += new System.EventHandler(this.OnMenu);
            this._menuMovePaneDown.CID = (int)CID.MovePaneDown;
            //
            // _menuMovePaneLeft
            //
            this._menuMovePaneLeft.Index = 2;
            this._menuMovePaneLeft.Click += new System.EventHandler(this.OnMenu);
            this._menuMovePaneLeft.CID = (int)CID.MovePaneLeft;
            //
            // _menuMovePaneRight
            //
            this._menuMovePaneRight.Index = 3;
            this._menuMovePaneRight.Click += new System.EventHandler(this.OnMenu);
            this._menuMovePaneRight.CID = (int)CID.MovePaneRight;
            //
            // _menuExpandPane
            //
            this._menuExpandPane.Index = 1;
            this._menuExpandPane.Click += new EventHandler(this.OnMenu);
            this._menuExpandPane.CID = (int)CID.ExpandPane;
            //
            // _menuShrinkPane
            //
            this._menuShrinkPane.Index = 2;
            this._menuShrinkPane.Click += new EventHandler(this.OnMenu);
            this._menuShrinkPane.CID = (int)CID.ShrinkPane;
            //
            // _menuTab
            //
            this._menuTab.Index = 3;
            this._menuTab.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
                                                                                      this._menuPrevTab,
                                                                                      this._menuNextTab,
                                                                                      this._menuMoveTabToPrev,
                                                                                      this._menuMoveTabToNext});

            //
            // _menuPrevTab
            //
            this._menuPrevTab.Index = 0;
            this._menuPrevTab.Click += new EventHandler(this.OnMenu);
            this._menuPrevTab.CID = (int)CID.PrevPane;
            //
            // _menuNextTab
            //
            this._menuNextTab.Index = 1;
            this._menuNextTab.Click += new EventHandler(this.OnMenu);
            this._menuNextTab.CID = (int)CID.NextPane;
            //
            // _menuMoveTabToPrev
            //
            this._menuMoveTabToPrev.Index = 2;
            this._menuMoveTabToPrev.Click += new EventHandler(this.OnMenu);
            this._menuMoveTabToPrev.CID = (int)CID.MoveTabToPrev;
            //
            // _menuMoveTabToNext
            //
            this._menuMoveTabToNext.Index = 3;
            this._menuMoveTabToNext.Click += new EventHandler(this.OnMenu);
            this._menuMoveTabToNext.CID = (int)CID.MoveTabToNext;
            //
            // _menuBarWindow2
            //
            this._menuBarWindow2.Index = 4;
            this._menuBarWindow2.Text = "-";
            //
            // _menuCloseAll
            //
            this._menuCloseAll.Index = 5;
            this._menuCloseAll.Click += new System.EventHandler(this.OnMenu);
            this._menuCloseAll.CID = (int)CID.CloseAll;
            //
            // _menuCloseAllDisconnected
            //
            this._menuCloseAllDisconnected.Index = 6;
            this._menuCloseAllDisconnected.Click += new System.EventHandler(this.OnMenu);
            this._menuCloseAllDisconnected.CID = (int)CID.CloseAllDisconnected;
            //
            // _menuBarWindow3
            //
            this._menuBarWindow3.Index = 7;
            this._menuBarWindow3.Text = "-";
            //
            // _menuHelp
            //
            this._menuHelp.Index = 5;
            this._menuHelp.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
                                                                                      this._menuAboutBox,this._menuProductWeb});

            //
            // _menuAboutBox
            //
            this._menuAboutBox.Index = 0;
            this._menuAboutBox.Click += new System.EventHandler(this.OnMenu);
            this._menuAboutBox.CID = (int)CID.AboutBox;
            //
            // _menuProductWeb
            //
            this._menuProductWeb.Index = 1;
            this._menuProductWeb.Click += new System.EventHandler(this.OnMenu);
            this._menuProductWeb.CID = (int)CID.ProductWeb;
            //
            // _statusBar
            //
            this._statusBar.Location = new System.Drawing.Point(0, 689);
            this._statusBar.Dock = DockStyle.Bottom;
            this._statusBar.Name = "_statusBar";
            this._statusBar.Panels.AddRange(new System.Windows.Forms.StatusBarPanel[] {
                                                                                          this._textStatusBarPanel,
                                                                                          this._bellIndicateStatusBarPanel,
                                                                                          this._caretPosStatusBarPanel});
            this._statusBar.ShowPanels = true;
            this._statusBar.Size = new System.Drawing.Size(600, 24);
            this._statusBar.TabIndex = 5;
            //
            // _textStatusBarPanel
            //
            this._textStatusBarPanel.BorderStyle = StatusBarPanelBorderStyle.None;
            this._textStatusBarPanel.Width = 443;
            //
            // _bellIndicateStatusBarPanel
            //
            this._bellIndicateStatusBarPanel.Alignment = System.Windows.Forms.HorizontalAlignment.Right;
            this._bellIndicateStatusBarPanel.Width = 31;

            //
            // _caretPosStatusBarPanel
            //
            this._caretPosStatusBarPanel.Alignment = System.Windows.Forms.HorizontalAlignment.Center;
            this._caretPosStatusBarPanel.Width = 120;

            this._statusBar.SuspendLayout(); //����AutoSize�Z�b�g���ɂ߂ďd�����Ƃ������B����Ōy���Ȃ邩�H
            this._textStatusBarPanel.AutoSize = System.Windows.Forms.StatusBarPanelAutoSize.Spring;
            this._bellIndicateStatusBarPanel.AutoSize = System.Windows.Forms.StatusBarPanelAutoSize.None;
            this._caretPosStatusBarPanel.AutoSize = System.Windows.Forms.StatusBarPanelAutoSize.None;
            this._statusBar.ResumeLayout(false);

            //
            // _multiPaneControl
            //
            _multiPaneControl = new MultiPaneControl();
            _multiPaneControl.Dock = DockStyle.Fill;
            //
            // GFrame
            //
            this.AllowDrop = true;
            this.FormBorderStyle = FormBorderStyle.Sizable;
            this.AutoScaleBaseSize = new System.Drawing.Size(5, 12);
            this.Controls.AddRange(new System.Windows.Forms.Control[] {
                                                                          this._multiPaneControl,
                                                                          });
            this.Name = "GFrame";
            this.Text = "Poderosa";
            this.Menu = this._menu;
            this.StartPosition = System.Windows.Forms.FormStartPosition.Manual;
            ((System.ComponentModel.ISupportInitialize)(this._textStatusBarPanel)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this._bellIndicateStatusBarPanel)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this._caretPosStatusBarPanel)).EndInit();
            this.ResumeLayout(false);
        }
コード例 #3
0
ファイル: GFrame.cs プロジェクト: nospy/EasyConnect
        private void InitContextMenu()
        {
            _contextMenu = new ContextMenu();

            GMenuItem copy = new GMenuItem();
            copy.Text = GApp.Strings.GetString("Menu._menuCopy");
            copy.Click += new EventHandler(OnMenu);
            copy.ShortcutKey = GApp.Options.Commands.FindKey(CID.Copy);
            copy.CID = (int)CID.Copy;

            GMenuItem paste = new GMenuItem();
            paste.Text = GApp.Strings.GetString("Menu._menuPaste");
            paste.Click += new EventHandler(OnMenu);
            paste.ShortcutKey = GApp.Options.Commands.FindKey(CID.Paste);
            paste.CID = (int)CID.Paste;

            GMenuItem bar = new GMenuItem();
            bar.Text = "-";

            _contextMenu.MenuItems.Add(copy);
            _contextMenu.MenuItems.Add(paste);
            _contextMenu.MenuItems.Add(bar);

            foreach(MenuItem child in _menuConsole.MenuItems) {
                MenuItem mi = child.CloneMenu();
                _contextMenu.MenuItems.Add(mi);
                CloneMenuCommand(child, mi);
            }
        }
コード例 #4
0
ファイル: GFrame.cs プロジェクト: nospy/EasyConnect
        private void AddWindowMenu(ConnectionTag ct)
        {
            GMenuItem mi = new GMenuItem();
            mi.Text = ct.FormatTabText();
            mi.Checked = true;
            //���̃V���[�g�J�b�g�͌Œ�ŁA�J�X�^�}�C�Y�s��
            if(_windowMenuItemMap.Count<=8)
                mi.ShortcutKey = Keys.Alt | (Keys)((int)Keys.D1 + _windowMenuItemMap.Count);
            else if(_windowMenuItemMap.Count==9)
                mi.ShortcutKey = Keys.Alt | Keys.D0;

            foreach(MenuItem m in _windowMenuItemMap.Keys) {
                m.Checked = false;
            }

            _windowMenuItemMap.Add(mi, ct);
            mi.Click += new EventHandler(OnWindowItemMenuClicked);
            _menuWindow.MenuItems.Add(mi);
        }
コード例 #5
0
ファイル: GFrame.cs プロジェクト: nospy/EasyConnect
        public void AdjustMRUMenu()
        {
            //�܂�����MRU���j���[�̃N���A
            _MRUMenuToParameter.Clear();
            int i = _menuBarBeforeMRU.Index + 1;
            Menu.MenuItemCollection mi = _menuFile.MenuItems;
            while(_menuBarAfterMRU.Index > i)
                mi.RemoveAt(i);

            //���X�g����Z�b�g
            int count = GApp.Options.MRUSize;
            i = 0;
            foreach(TerminalParam p in GApp.ConnectionHistory) {
                GMenuItem mru = new GMenuItem();
                _MRUMenuToParameter[mru] = p;
                string text = p.Caption;
                if(text==null || text.Length==0) text = p.ShortDescription;
                mru.Text = i<=8?
                    String.Format("&{0} {1} - {2}", i+1, text, p.MethodName) :
                    String.Format("{0} {1} - {2}",  i+1, text, p.MethodName);
                mru.Click += new EventHandler(OnMRUMenuClicked);
                mi.Add(_menuBarBeforeMRU.Index+i+1, mru);

                if(++i == count) break;
            }

            _menuBarAfterMRU.Visible = (i>0); //�P�‚�Ȃ��Ƃ��̓o�[���A�����Ă��܂����ꂵ��
        }
コード例 #6
0
ファイル: GFrame.cs プロジェクト: nospy/EasyConnect
        public void AdjustMacroMenu()
        {
            int n = _menuBarMacro.Index+1;
            while(n < _menuMacro.MenuItems.Count)
                _menuMacro.MenuItems.RemoveAt(n); //�o�[�ȍ~��S����

            foreach(MacroModule mod in GApp.MacroManager.Modules) {
                GMenuItem mi = new GMenuItem();
                mi.Text = mod.Title;
                mi.ShortcutKey = mod.ShortCut;
                mi.Click += new EventHandler(OnExecMacro);
                _menuMacro.MenuItems.Add(mi);
            }
        }
コード例 #7
0
ファイル: GFrame.cs プロジェクト: nospy/EasyConnect
        public GFrame(InitialAction act)
        {
            #region Poderosa Constructors
            _initialAction = act;
            _windowMenuItemMap = new Hashtable();
            _MRUMenuToParameter = new Hashtable();
            _firstflag=true;
            //
            // Windows �t�H�[�� �f�U�C�i �T�|�[�g�ɕK�v�ł��B
            //

            SetStyle(ControlStyles.AllPaintingInWmPaint|ControlStyles.UserPaint|ControlStyles.DoubleBuffer, true);
            InitializeComponent();
            this.Icon = GApp.Options.GuevaraMode? GIcons.GetOldGuevaraIcon() : GIcons.GetAppIcon();
            InitMenuText();

            //�V�X�e������G���R�[�f�B���O��񋓂��ă��j���[��Z�b�g
            foreach(string e in EnumDescAttribute.For(typeof(EncodingType)).DescriptionCollection()) {
                GMenuItem m = new GMenuItem();
                m.Text = e;
                m.Click += new EventHandler(this.OnChangeEncoding);
                _menuEncoding.MenuItems.Add(m);
            }

            this._tabBar = new TabBar();
            _tabBar.Dock = DockStyle.Top;
            _tabBar.Height = 25;

            ApplyOptions(null, GApp.Options);
            ApplyHotKeys();

            _gStatusBar = new GStatusBar(_statusBar);
            AdjustTitle(null);
            #endregion
        }
コード例 #8
0
 public GMenuItem(GMenuItem mi) : base(mi)
 {
 }
コード例 #9
0
ファイル: GMenuItem.cs プロジェクト: nospy/EasyConnect
 public override MenuItem CloneMenu()
 {
     GMenuItem mi = new GMenuItem(this);
     mi._shortcut = _shortcut;
     mi.Visible = this.Visible;
     mi.Enabled = this.Enabled;
     mi.CID = this.CID;
     return mi;
 }
コード例 #10
0
ファイル: GMenuItem.cs プロジェクト: nospy/EasyConnect
 public GMenuItem(GMenuItem mi)
     : base(mi)
 {
 }
コード例 #11
0
ファイル: LogNoteForm.cs プロジェクト: rfyiamcool/solrex
 private MenuItem CreateMenuItem(int index, string text, EventHandler handler)
 {
     GMenuItem mex = new GMenuItem();
     mex.Text = text;
     mex.Index = index;
     mex.Click += handler;
     return mex;
 }
コード例 #12
0
ファイル: MainForm.cs プロジェクト: rfyiamcool/solrex
 /// <summary>
 /// �f�U�C�i �T�|�[�g�ɕK�v�ȃ��\�b�h�ł��B���̃��\�b�h�̓�e��
 /// �R�[�h �G�f�B�^�ŕύX���Ȃ��ł��������B
 /// </summary>
 private void InitializeComponent()
 {
     this.components = new System.ComponentModel.Container();
     System.Resources.ResourceManager resources = new System.Resources.ResourceManager(typeof(MainForm));
     this._list = new System.Windows.Forms.ListView();
     this._sshHostColumn = new System.Windows.Forms.ColumnHeader();
     this._accountColumn = new System.Windows.Forms.ColumnHeader();
     this._typeColumn = new System.Windows.Forms.ColumnHeader();
     this._listenPortColumn = new System.Windows.Forms.ColumnHeader();
     this._destinationHostColumn = new System.Windows.Forms.ColumnHeader();
     this._destinationPortColumn = new System.Windows.Forms.ColumnHeader();
     this._statusColumn = new System.Windows.Forms.ColumnHeader();
     this._mainMenu = new System.Windows.Forms.MainMenu();
     this._menuFile = new GMainMenuItem();
     this._menuNewProfile = new GMenuItem();
     this._menuFileBar1 = new GMenuItem();
     this._menuTaskTray = new GMenuItem();
     this._menuExit = new GMenuItem();
     this._menuProfile = new GMainMenuItem();
     this._menuProfileProperty = new GMenuItem();
     this._menuProfileRemove = new GMenuItem();
     this._menuProfileBar1 = new GMenuItem();
     this._menuProfileUp = new GMenuItem();
     this._menuProfileDown = new GMenuItem();
     this._menuProfileBar2 = new GMenuItem();
     this._menuProfileConnect = new GMenuItem();
     this._menuProfileDisconnect = new GMenuItem();
     this._menuAllProfile = new GMainMenuItem();
     this._menuAllProfileConnect = new GMenuItem();
     this._menuAllProfileDisconnect = new GMenuItem();
     this._menuTool = new GMainMenuItem();
     this._menuOption = new GMenuItem();
     this._menuHelp = new GMainMenuItem();
     this._menuAboutBox = new GMenuItem();
     this._taskTrayIcon = new System.Windows.Forms.NotifyIcon(this.components);
     this.SuspendLayout();
     //
     // _list
     //
     this._list.Columns.AddRange(new System.Windows.Forms.ColumnHeader[] {
                                                                             this._sshHostColumn,
                                                                             this._accountColumn,
                                                                             this._typeColumn,
                                                                             this._listenPortColumn,
                                                                             this._destinationHostColumn,
                                                                             this._destinationPortColumn,
                                                                             this._statusColumn});
     this._list.Dock = System.Windows.Forms.DockStyle.Fill;
     this._list.FullRowSelect = true;
     this._list.GridLines = true;
     this._list.Location = new System.Drawing.Point(0, 0);
     this._list.MultiSelect = false;
     this._list.Name = "_list";
     this._list.Size = new System.Drawing.Size(504, 345);
     this._list.TabIndex = 0;
     this._list.View = System.Windows.Forms.View.Details;
     this._list.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.OnListViewKeyPress);
     this._list.DoubleClick += new System.EventHandler(this.OnListViewDoubleClicked);
     this._list.MouseUp += new System.Windows.Forms.MouseEventHandler(this.OnListViewMouseUp);
     this._list.SelectedIndexChanged += new System.EventHandler(this.OnSelectedIndexChanged);
     //
     // _sshHostColumn
     //
     this._sshHostColumn.Width = 69;
     //
     // _accountColumn
     //
     //
     // _typeColumn
     //
     //
     // _listenPortColumn
     //
     this._listenPortColumn.Width = 75;
     //
     // _destinationHostColumn
     //
     this._destinationHostColumn.Width = 100;
     //
     // _destinationPortColumn
     //
     this._destinationPortColumn.Width = 75;
     //
     // _statusColumn
     //
     //
     // _mainMenu
     //
     this._mainMenu.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
                                                                               this._menuFile,
                                                                               this._menuProfile,
                                                                               this._menuAllProfile,
                                                                               this._menuTool,
                                                                               this._menuHelp});
     //
     // _menuFile
     //
     this._menuFile.Index = 0;
     this._menuFile.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
                                                                               this._menuNewProfile,
                                                                               this._menuFileBar1,
                                                                               this._menuTaskTray,
                                                                               this._menuExit});
     //
     // _menuNewProfile
     //
     this._menuNewProfile.Index = 0;
     this._menuNewProfile.Click += new System.EventHandler(this.OnMenu);
     //
     // _menuFileBar1
     //
     this._menuFileBar1.Index = 1;
     this._menuFileBar1.Text = "-";
     //
     // _menuTaskTray
     //
     this._menuTaskTray.Index = 2;
     this._menuTaskTray.Click += new System.EventHandler(this.OnMenu);
     //
     // _menuExit
     //
     this._menuExit.Index = 3;
     this._menuExit.Click += new System.EventHandler(this.OnMenu);
     //
     // _menuProfile
     //
     this._menuProfile.Index = 1;
     this._menuProfile.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
                                                                                  this._menuProfileProperty,
                                                                                  this._menuProfileRemove,
                                                                                  this._menuProfileBar1,
                                                                                  this._menuProfileUp,
                                                                                  this._menuProfileDown,
                                                                                  this._menuProfileBar2,
                                                                                  this._menuProfileConnect,
                                                                                  this._menuProfileDisconnect});
     this._menuProfile.Popup += new System.EventHandler(this.OnProfileMenuClicked);
     //
     // _menuProfileProperty
     //
     this._menuProfileProperty.Index = 0;
     this._menuProfileProperty.Click += new System.EventHandler(this.OnMenu);
     //
     // _menuProfileRemove
     //
     this._menuProfileRemove.Index = 1;
     this._menuProfileRemove.Click += new System.EventHandler(this.OnMenu);
     //
     // _menuProfileBar1
     //
     this._menuProfileBar1.Index = 2;
     this._menuProfileBar1.Text = "-";
     //
     // _menuProfileUp
     //
     this._menuProfileUp.Index = 3;
     this._menuProfileUp.Click += new System.EventHandler(this.OnMenu);
     //
     // _menuProfileDown
     //
     this._menuProfileDown.Index = 4;
     this._menuProfileDown.Click += new System.EventHandler(this.OnMenu);
     //
     // _menuProfileBar2
     //
     this._menuProfileBar2.Index = 5;
     this._menuProfileBar2.Text = "-";
     //
     // _menuProfileConnect
     //
     this._menuProfileConnect.Index = 6;
     this._menuProfileConnect.Click += new System.EventHandler(this.OnMenu);
     //
     // _menuProfileDisconnect
     //
     this._menuProfileDisconnect.Index = 7;
     this._menuProfileDisconnect.Click += new System.EventHandler(this.OnMenu);
     //
     // _menuAllProfile
     //
     this._menuAllProfile.Index = 2;
     this._menuAllProfile.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
                                                                                     this._menuAllProfileConnect,
                                                                                     this._menuAllProfileDisconnect});
     //
     // _menuAllProfileConnect
     //
     this._menuAllProfileConnect.Index = 0;
     this._menuAllProfileConnect.Click += new System.EventHandler(this.OnMenu);
     //
     // _menuAllProfileDisconnect
     //
     this._menuAllProfileDisconnect.Index = 1;
     this._menuAllProfileDisconnect.Click += new System.EventHandler(this.OnMenu);
     //
     // _menuTool
     //
     this._menuTool.Index = 3;
     this._menuTool.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
                                                                               this._menuOption});
     //
     // _menuOption
     //
     this._menuOption.Index = 0;
     this._menuOption.Click += new System.EventHandler(this.OnMenu);
     //
     // _menuHelp
     //
     this._menuHelp.Index = 4;
     this._menuHelp.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
                                                                               this._menuAboutBox});
     //
     // _menuAboutBox
     //
     this._menuAboutBox.Index = 0;
     this._menuAboutBox.Click += new System.EventHandler(this.OnMenu);
     //
     // _taskTrayIcon
     //
     this._taskTrayIcon.Icon = ((System.Drawing.Icon)(resources.GetObject("_taskTrayIcon.Icon")));
     this._taskTrayIcon.Text = "Poderosa SSH Portforwarding Gateway";
     this._taskTrayIcon.Visible = true;
     this._taskTrayIcon.DoubleClick += new System.EventHandler(this.OnTaskTrayIconDoubleClicked);
     //
     // MainForm
     //
     this.AutoScaleBaseSize = new System.Drawing.Size(5, 12);
     this.ClientSize = new System.Drawing.Size(504, 345);
     this.Controls.Add(this._list);
     this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
     this.MaximizeBox = false;
     this.Menu = this._mainMenu;
     this.Name = "MainForm";
     this.StartPosition = System.Windows.Forms.FormStartPosition.Manual;
     this.Text = Env.WindowTitle;
     this.ResumeLayout(false);
 }
コード例 #13
0
ファイル: MainForm.cs プロジェクト: rfyiamcool/solrex
 private void AddIconContextMenu(GMenuItem basemenu, string text)
 {
     MenuItem mi = new MenuItem();
     mi.Text = text;
     mi.Click += new EventHandler(OnMenu);
     mi.Index = _iconContextMenu.MenuItems.Count;
     _iconContextMenu.MenuItems.Add(mi);
     _menuMap.Add(mi, basemenu);
 }