public SessionTreeControl() : base() { InitializeComponent(); newSessionForm = new NewSessionForm(null); hkc = HotkeyController.getInstance(); setupHotkeyDictionary(); setupHotkeyMenuItems(this, EventArgs.Empty); EventHandler hkHandler = new EventHandler(setupHotkeyMenuItems); hkc.HotkeysRefreshed += hkHandler; toolTip = new ToolTip(); toolTip.InitialDelay = 800; toolTip.ReshowDelay = 0; SessionSorter.SortOrder order = (SessionSorter.SortOrder)Properties.Settings.Default.SortOrder; treeView.TreeViewNodeSorter = new SessionSorter((SessionSorter.SortOrder)Properties.Settings.Default.SortOrder); if (order == SessionSorter.SortOrder.FOLDER_FIRST) foldersFirstToolStripMenuItem.Checked = true; else if (order == SessionSorter.SortOrder.FOLDER_IGNORE) ignoreFoldersToolStripMenuItem.Checked = true; else if (order == SessionSorter.SortOrder.FOLDER_LAST) foldersLastToolStripMenuItem.Checked = true; ed = new ExportDialog(); }
public static HotkeyController getInstance() { if (instance == null) { instance = new HotkeyController(); } return(instance); }
public GeneralOptionsControl() { InitializeComponent(); sc = SessionController.getInstance(); hc = HotkeyController.getInstance(); // Reset all the elements to their saved state resetState(); }
public SessionManagerForm() : base() { this.Visible = false; InitializeComponent(); hkc = HotkeyController.getInstance(); LoadLayout(); SessionController.SessionsRefreshedEventHandler scHandler = new SessionController.SessionsRefreshedEventHandler(this.SessionsRefreshed); sc.SessionsRefreshed += scHandler; Application.AddMessageFilter(this); EventHandler dialogFontHandler = new EventHandler(this.dialogFontChanged); optionsDialog.DialogFontChanged += dialogFontHandler; }
public HotkeyChooser(Form parent) { parentWindow = parent; sc = SessionController.getInstance(); hkc = HotkeyController.getInstance(); InitializeComponent(); createTags(); createComboDictionary(); createTextboxDictionary(); createCheckboxDictionary(); SessionController.SessionsRefreshedEventHandler scHandler = new SessionController.SessionsRefreshedEventHandler(this.SessionsRefreshed); sc.SessionsRefreshed += scHandler; EventHandler hkHandler = new EventHandler(setHotkeys); hkc.HotkeysRefreshed += hkHandler; resetState(); }
public static HotkeyController getInstance() { if (instance == null) instance = new HotkeyController(); return instance; }