Exemple #1
0
        public Main()
        {
            InitializeComponent();
            string headerText = string.Format("InfiniPad v{0}", Globals.getVersion());
            this.Icon = Properties.Resources.icon;
            this.Text = headerText;

            hk = new Hotkeys();
            
            nfi = new NotifyIcon();
            nfi.Icon = Properties.Resources.icon;
            nfi.Visible = true;
            nfi.Text = headerText;
            nfi.MouseClick += nfiClicked;

            ContextMenu ctm = new ContextMenu();
            ctm.MenuItems.Add("Exit", new EventHandler(nfiExit));

            nfi.ContextMenu = ctm;

            hk.ReapplyHotkeys();
            Globals.CreateMoveDir();

            #region movefile
#if !DEBUG
                    Globals.moveFile(Globals.MoveToDir + "InfiniPad.exe");
#endif
            #endregion
            


        }
Exemple #2
0
        public Main()
        {
            PaintHelp.FixDPIAwareness();
            InitializeComponent();
            Notification.Initialize();
            string headerText = string.Format("InfiniPad v{0}", Globals.getVersion());

            this.Icon = Properties.Resources.icon;
            this.Text = headerText;

            hk = new Hotkeys();

            hk.ReapplyHotkeys();
            Globals.CreateMoveDir();

            fmMainWindow = this;
            #region movefile
#if !DEBUG
            Globals.moveFile(Globals.MoveToDir + "InfiniPad.exe");
#endif
            #endregion
        }
Exemple #3
0
 public Settings(Hotkeys hk)
 {
     hkInstance = hk;
     InitializeComponent();
     applySettings();
 }
Exemple #4
0
 public Settings(Hotkeys hk)
 {
     hkInstance = hk;
     InitializeComponent();
     applySettings();
 }