Ejemplo n.º 1
0
 /// <summary>
 /// Constructor for the class.
 /// </summary>
 /// <param name="editable">Boolean whether the dialog should be editable.</param>
 /// <param name="mainController"></param>
 public ResultDialogView(Boolean editable, MainController mainController)
 {
     InitializeComponent();
     ResultModel = new ResultModel();
     this.mainController = mainController;
     this.resultDialogController = mainController.resultDialogController;
     this.editable = editable;
     checkBoxBewerk.Checked = editable;
     MakeEditable();
 }
Ejemplo n.º 2
0
        /// <summary>
        /// All the variables are initialized here.
        /// </summary>
        private void Initialize()
        {
            //Other
            this.resultModelList = new List <ResultModel>();
            this.resultList      = new ArrayList();

            //Model
            dbConnection = new ConnectionModel();

            //View
            this.mainForm       = new MainForm();
            this.mainView       = new MainView(this);
            this.adminLoginView = new AdminLoginView();
            this.inleesView     = new InleesView(this);
            this.resultView     = new ResultView(this);
            this.loadMapView    = new LoadMapView(this);
            this.statisticView  = new StatisticView(this);

            //Controller
            this.mainViewController     = new MainViewController(this);
            this.inleesViewController   = new InleesViewController(this);
            this.resultController       = new ResultController(this);
            this.resultDialogController = new ResultDialogController(this);
            this.colonyController       = new ColonyController();
            this.fileSelectController   = new FileController(this);
            this.statisticController    = new StatisticController(this);

            // ADD INLEESVIEW AND RESULTVIEW TO MAINVIEW
            this.mainViewController.AddToPage(inleesView, 0);
            this.mainViewController.AddToPage(resultView, 1);
            this.mainViewController.AddToPage(statisticView, 2);
            this.mainForm.Controls.Add(mainView);
            this.mainView.Dock      = DockStyle.Fill;
            this.resultView.Dock    = DockStyle.Fill;
            this.statisticView.Dock = DockStyle.Fill;

            // START APP
            Application.EnableVisualStyles();
            Application.Run(mainForm);
        }
Ejemplo n.º 3
0
        /// <summary>
        /// All the variables are initialized here.
        /// </summary>
        private void Initialize()
        {
            //Other
            this.resultModelList = new List<ResultModel>();
            this.resultList = new ArrayList();

            //Model
            dbConnection = new ConnectionModel();

            //View
            this.mainForm = new MainForm();
            this.mainView = new MainView(this);
            this.adminLoginView = new AdminLoginView();
            this.inleesView = new InleesView(this);
            this.resultView = new ResultView(this);
            this.loadMapView = new LoadMapView(this);
            this.statisticView = new StatisticView(this);

            //Controller
            this.mainViewController = new MainViewController(this);
            this.inleesViewController = new InleesViewController(this);
            this.resultController = new ResultController(this);
            this.resultDialogController = new ResultDialogController(this);
            this.colonyController = new ColonyController();
            this.fileSelectController = new FileController(this);
            this.statisticController = new StatisticController(this);

            // ADD INLEESVIEW AND RESULTVIEW TO MAINVIEW
            this.mainViewController.AddToPage(inleesView, 0);
            this.mainViewController.AddToPage(resultView, 1);
            this.mainViewController.AddToPage(statisticView, 2);
            this.mainForm.Controls.Add(mainView);
            this.mainView.Dock = DockStyle.Fill;
            this.resultView.Dock = DockStyle.Fill;
            this.statisticView.Dock = DockStyle.Fill;

            // START APP
            Application.EnableVisualStyles();
            Application.Run(mainForm);
        }