예제 #1
0
        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;
            SystemEvents.DisplaySettingsChanged += OnDisplaySettingsChanged;

            sessionTreeControl.LaunchAbout               += sessionControl_ShowAbout;
            sessionTreeControl.LaunchOptions             += sessionControl_ShowOptions;
            sessionTreeControl.LaunchSessionEditor       += sessionEditorToolStripMenuItem_Click;
            sessionTreeControl.LaunchSessionHotkeys      += sessionHotkeysToolStripMenuItem_Click;
            sessionTreeControl.LaunchSynchroniseSessions += synchronizeSessionsToolStripMenuItem_Click;
            sessionTreeControl.ExitRequest               += exitToolStripMenuItem_Click;
            sessionTreeControl.SwitchDisplay             += sessionTreeControl_SwitchDisplay;

            sessionListControl.LaunchAbout               += sessionControl_ShowAbout;
            sessionListControl.LaunchOptions             += sessionControl_ShowOptions;
            sessionListControl.LaunchSessionEditor       += sessionEditorToolStripMenuItem_Click;
            sessionListControl.LaunchSessionHotkeys      += sessionHotkeysToolStripMenuItem_Click;
            sessionListControl.LaunchSynchroniseSessions += synchronizeSessionsToolStripMenuItem_Click;
            sessionListControl.ExitRequest               += exitToolStripMenuItem_Click;
            sessionListControl.SwitchDisplay             += sessionListControl_SwitchDisplay;
        }
        public GeneralOptionsControl()
        {
            InitializeComponent();

            sc = SessionController.getInstance();
            hc = HotkeyController.getInstance();

            // Reset all the elements to their saved state
            resetState();
        }
예제 #3
0
        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;
        }
예제 #4
0
        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();
        }