Exemplo n.º 1
0
        public MainWindowController(MainWindow mainWindow, MainWindowModel model)
        {
            _mainWindow = mainWindow;
                        _model = model;

                        Errors = new SortedSet<string> ();

                        RegisterEvents ();
        }
Exemplo n.º 2
0
 public static void Main(string[] args)
 {
     Console.WriteLine ("Starting UI");
                 Application.Init ();
                 ISpreadSheetData ds = null;
                 try {
                         ds = new ExcelInterop.ExcelDatasource ();
                 } catch {
                         ds = null;
                 }
                 OposParserFacade parser = new OposParserFacade (ds);
                 MainWindowModel model = new MainWindowModel (parser);
                 MainWindow view = new MainWindow ();
                 MainWindowController controller = new MainWindowController (view, model);
                 view.Show ();
                 Application.Run ();
 }