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 }
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 }
public Settings(Hotkeys hk) { hkInstance = hk; InitializeComponent(); applySettings(); }