示例#1
0
        public static void Main(string[] args)
        {
            Application.Init ();
            MainWindow win = new MainWindow ();

            Repository repo = new MyRepository();
            Controller ctrl = new Controller(repo);
            List<PrgState> programs = new List<PrgState>();
            ctrl.PrgList = programs;
            win.Ctrl = ctrl;

            win.Show ();
            Application.Run ();
        }
示例#2
0
 private void lastProgramState()
 {
     Repository repo = new MyRepository ();
     repo.deserializePrgStatet ();
     ctrl = new Controller(repo);
 }