public MainWindow()
 {
     InitializeComponent();
     controller = Controller.GetInstance();
     controller.SetGui(this);
     richTextBox.Visibility = Visibility.Hidden;
 }
Example #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;
 }
        public MainWindow()
        {
            InitializeComponent();
            this.running = true;
            this._auctions = new Auctions();

            this._controller = new Controller("127.0.0.1", 12346);
            this.worker = new Thread(new ThreadStart(Task));

            this.worker.Start();
        }