예제 #1
0
 /// <summary>
 /// Default constructor for this control
 /// This will get a reference to the singleton SessionController
 /// and register the SessionsRefreshedEventHandler
 /// </summary>
 public SessionControl()
 {
     sc = SessionController.getInstance();
     InitializeComponent();
     SessionController.SessionsRefreshedEventHandler scHandler = new SessionController.SessionsRefreshedEventHandler(this.SessionsRefreshed);
     sc.SessionsRefreshed += scHandler;
 }
 /// <summary>
 /// Default constructor for this control
 /// This will get a reference to the singleton SessionController
 /// and register the SessionsRefreshedEventHandler
 /// </summary>
 public SessionControl()
 {
     sc = SessionController.getInstance();
     InitializeComponent();
     SessionController.SessionsRefreshedEventHandler scHandler = new SessionController.SessionsRefreshedEventHandler(this.SessionsRefreshed);
     sc.SessionsRefreshed += scHandler;
 }
예제 #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;
            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 SynchronizeForm()
     : base()
 {
     InitializeComponent();
     SessionController.SessionsRefreshedEventHandler scHandler = new SessionController.SessionsRefreshedEventHandler(this.SessionsRefreshed);
     sc.SessionsRefreshed += scHandler;
     resetDialogFont();
 }
 public SynchronizeForm()
     : base()
 {
     InitializeComponent();
     SessionController.SessionsRefreshedEventHandler scHandler = new SessionController.SessionsRefreshedEventHandler(this.SessionsRefreshed);
     sc.SessionsRefreshed += scHandler;
     resetDialogFont();
 }
예제 #6
0
 public NewSessionForm(Form parent)
 {
     parentWindow = parent;
     sc           = SessionController.getInstance();
     InitializeComponent();
     SessionController.SessionsRefreshedEventHandler scHandler = new SessionController.SessionsRefreshedEventHandler(this.SessionsRefreshed);
     sc.SessionsRefreshed += scHandler;
     resetDialogFont();
 }
 public NewSessionForm(Form parent)
 {
     parentWindow = parent;
     sc = SessionController.getInstance();
     InitializeComponent();
     SessionController.SessionsRefreshedEventHandler scHandler = new SessionController.SessionsRefreshedEventHandler(this.SessionsRefreshed);
     sc.SessionsRefreshed += scHandler;
     resetDialogFont();
 }
 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 CopySessionForm(Form parent)
     : base()
 {
     parentWindow = parent;
     InitializeComponent();
     SessionController.SessionsRefreshedEventHandler scHandler = new SessionController.SessionsRefreshedEventHandler(this.SessionsRefreshed);
     sc.SessionsRefreshed += scHandler;
     csr = new CopySessionRequest();
     tagCheckboxes();
     tagRadioButtons();
     createDictonary();
     copyAllRadioButton.Checked = true;
 }
예제 #10
0
 public CopySessionForm(Form parent)
     : base()
 {
     parentWindow = parent;
     InitializeComponent();
     SessionController.SessionsRefreshedEventHandler scHandler = new SessionController.SessionsRefreshedEventHandler(this.SessionsRefreshed);
     sc.SessionsRefreshed += scHandler;
     csr = new CopySessionRequest();
     tagCheckboxes();
     tagRadioButtons();
     createDictonary();
     copyAllRadioButton.Checked = true;
 }
예제 #11
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;
        }
 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();
 }
예제 #13
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();
        }