public CommandState() { inputsim = SharedObjectsSingleton.Instance().inputSimulator; commandList = SettingsSingleton.Instance().Commands; zoomForm = SharedFormsSingleton.Instance().zoomForm; scrollManager = new ScrollManager(); keyboardManager = new KeyboardManager(); toastOverlay = SharedFormsSingleton.Instance().ToastOverlay; }
protected SharedFormsSingleton() { //Setting up the forms that need to always be available to the program overlayForm = new OverlayForm(); ToastOverlay = new Toast(); overlayForm.RegisterOverlay(ToastOverlay); zoomForm = new ZoomForm(); overlayForm.Show(); fixationDot = new FixationDot(); }