/// <summary> /// Sets the initial view of the GUI /// </summary> public MainPage() { InitializeComponent(); controller = Controller.GetInstance(); controller.SetGui(this); richTextBox.Visibility = Visibility.Collapsed; }
/// <summary> /// Accessor method for accessing the single instance of controller. /// </summary> /// <returns>The only instance of controller</returns> public static Controller GetInstance() { if (instance == null) { instance = new Controller(); } return instance; }