예제 #1
0
 /// <summary>
 /// Sets the initial view of the GUI
 /// </summary>
 public MainPage()
 {
     InitializeComponent();
     controller = Controller.GetInstance();
     controller.SetGui(this);
     richTextBox.Visibility = Visibility.Collapsed;
 }
예제 #2
0
 /// <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;
 }