Esempio n. 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
            


        }
Esempio n. 2
0
        private void RefreshModifiers(object sender, EventArgs e)
        {
            int PartialMod = 0;

            if (checkPartialCtrl.Checked)
            {
                PartialMod = PartialMod | KeyModifiers.MOD_CONTROL;
            }
            if (checkPartialShift.Checked)
            {
                PartialMod = PartialMod | KeyModifiers.MOD_SHIFT;
            }
            Properties.Settings.Default.PartialModifiers = PartialMod;

            int MonitorMod = 0;

            if (checkMonitorCtrl.Checked)
            {
                MonitorMod = MonitorMod | KeyModifiers.MOD_CONTROL;
            }
            if (checkMonitorShift.Checked)
            {
                MonitorMod = MonitorMod | KeyModifiers.MOD_SHIFT;
            }
            Properties.Settings.Default.MonitorModifiers = MonitorMod;

            int WindowMod = 0;

            if (checkWindowCtrl.Checked)
            {
                WindowMod = WindowMod | KeyModifiers.MOD_CONTROL;
            }
            if (checkWindowShift.Checked)
            {
                WindowMod = WindowMod | KeyModifiers.MOD_SHIFT;
            }
            Properties.Settings.Default.WindowModifiers = WindowMod;


            Properties.Settings.Default.Save();

            hkInstance.ReapplyHotkeys();
        }
Esempio n. 3
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
        }