Exemplo n.º 1
0
        static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            IView View  = new Form1();
            Model Model = new Model();

            FileSelectorPresenter PLeft = new FileSelectorPresenter(View.PanelLeft, Model);
            //Presenter PRight = new TCPresenter(View.PanelRight, Model);

            Presenter Presenter = new Presenter(View, Model);

            Application.Run((Form)View);
        }
Exemplo n.º 2
0
        public Presenter(IView View, Model Model)
        {
            this.View     = View;
            this.Model    = Model;
            FilePresenter = new FileSelectorPresenter(this.View.PanelLeft, this.Model);

            View.Open += Open;
            View.Save += Save;

            View.Filter1 += Filter1;
            View.Filter2 += Filter2;
            View.Filter3 += Filter3;
            View.Filter4 += Filter4;

            this.View.PanelLeft.SelectDirectory += PanelLeft_SelectDirectory;
        }