Ejemplo n.º 1
0
        public CanvasPresenter(IViewMainForm viewMainForm)
        {
            this.viewMainForm  = viewMainForm;
            viewMainForm.Draw += ViewMainForm_Draw;

            InitCanvasModelLayer();
            InitViewMainForm();
        }
Ejemplo n.º 2
0
 public PMainForm(
     IViewMainForm MainView
     )
 {
     ChildForms = new List<IPresenter>();
     _mainView = MainView;
     StaticInformation.MdiParentForm = MainView;
     MySecurity.GetAuthorisation();
 }
Ejemplo n.º 3
0
        //метод создания формы
        public MainForm CreateFormView()
        {
            MainForm form = new MainForm();

            view            = form;
            view.Controller = this;
            form.Show();
            return(form);
        }
Ejemplo n.º 4
0
        public MainPresenter(MainForm mainForm, Client client)
        {
            this.mainForm = mainForm;
            this.client   = client;

            this.mainForm.createProcess      += onCreateProcess;
            this.mainForm.refreshProcessList += onRefreshProcesses;
            this.mainForm.removeProcess      += onRemoveProcess;

            client.connect();
            refreshProcesses();
        }
Ejemplo n.º 5
0
 public PresentMainForm(IViewMainForm IVew)
 {
     _IView = IVew;
     _IView.runExperimetns += new EventHandler <EventArgs>(_runExperiments);
 }
Ejemplo n.º 6
0
 public LibraryPluginPresenter(ILibraryPluginView view, IViewMainForm mdiForm)
     : base(view)
 {
     this.View.MdiParent = mdiForm.Form;
 }
Ejemplo n.º 7
0
 public Controller(IViewMainForm view, IModelMineField model)
 {
     this.model = model;
     this.view  = view;
 }
Ejemplo n.º 8
0
 public TwitterPluginPresenter(ITwitterPluginView view, IViewMainForm mdiForm)
     : base(view)
 {
     this.View.MdiParent = mdiForm.Form;
 }
Ejemplo n.º 9
0
 public MainFormPresenter(IViewMainForm view)
     : base(view)
 {
     this.CurrentView = view;
 }