예제 #1
0
        public ChangeTextMenuItem(BufermanMenuItem menuItem, IBufer bufer, IBufermanHost bufermanHost, IProgramSettingsGetter settings) : base(menuItem, bufer, bufermanHost)
        {
            menuItem.AddOnClickHandler(this._ChangeText);
            menuItem.ShortCut = Shortcut.CtrlH;

            this._settings = settings;
        }
예제 #2
0
        public EditBuferTextMenuItem(
            BufermanMenuItem menuItem,
            BuferContextMenuState buferContextMenuState,
            IBufermanHost bufermanHost,
            IProgramSettingsGetter settings,
            IClipboardWrapper clipboardWrapper)
        {
            this._settings              = settings;
            this._bufermanHost          = bufermanHost;
            this._buferContextMenuState = buferContextMenuState;
            this._clipboardWrapper      = clipboardWrapper;

            menuItem.AddOnClickHandler(this._ChangeBufer);
            menuItem.ShortCut = Shortcut.CtrlE;
        }
예제 #3
0
 public CreateLoginCredentialsMenuItem(BufermanMenuItem menuItem, IBufer bufer, IBufermanHost bufermanHost) : base(menuItem, bufer, bufermanHost)
 {
     menuItem.AddOnClickHandler(this._CreateLoginCredentials);
     menuItem.ShortCut = Shortcut.CtrlL;
 }
 public ReturnToInitialTextMenuItem(BufermanMenuItem menuItem, IBufer bufer, IBufermanHost bufermanHost) : base(menuItem, bufer, bufermanHost)
 {
     menuItem.AddOnClickHandler(this._ReturnTextToInitial);
     menuItem.ShortCut = Shortcut.CtrlI;
     menuItem.Enabled  = false;
 }