/// <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;
 }
 public SessionManagementForm()
 {
     InitializeComponent();
     sc = SessionController.getInstance();
     nsf = new NewSessionForm(this);
     resetDialogFont();
 }
 private HotkeyController()
 {
     sc = SessionController.getInstance();
     intitialiseModifierDictionary();
     initialiseHotkeyDictionary();
     currentHotkeyModifier = getModifier();
 }
 /// <summary>
 /// Gets the singleton instance of this class
 /// </summary>
 /// <returns></returns>
 public static SessionController getInstance()
 {
     if (instance == null)
     {
         instance = new SessionController();
     }
     return(instance);
 }
 public NewSessionForm(Form parent)
 {
     parentWindow = parent;
     sc = SessionController.getInstance();
     InitializeComponent();
     SessionController.SessionsRefreshedEventHandler scHandler = new SessionController.SessionsRefreshedEventHandler(this.SessionsRefreshed);
     sc.SessionsRefreshed += scHandler;
     resetDialogFont();
 }
        public PageantOptionsControl()
        {
            InitializeComponent();

            sc = SessionController.getInstance();

            // Reset all the elements to their saved state
            resetState();
        }
        public GeneralOptionsControl()
        {
            InitializeComponent();

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

            // Reset all the elements to their saved state
            resetState();
        }
 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();
 }
 /// <summary>
 /// Gets the singleton instance of this class
 /// </summary>
 /// <returns></returns>
 public static SessionController getInstance()
 {
     if (instance == null)
         instance = new SessionController();
     return instance;
 }
 /// <summary>
 /// Default constructor for TableControl 
 /// </summary>
 public TableControl()
 {
     InitializeComponent();
     sc = SessionController.getInstance();
 }