Пример #1
0
        static void Main()
        {
            ImageSliderModel model = new ImageSliderModel();

            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            Application.Run(new MainForm(model));
        }
Пример #2
0
        public ImageSliderController(ImageSliderModel m, ImageSliderView v)
        {
            model = m;
            view  = v;

            view.formLoad(new EventHandler(mainForm_Load));
            view.fileBtnClick(new EventHandler(fileBtn_Click));
            view.leftBtnClick(new EventHandler(leftBtn_Click));
            view.rightBtnClick(new EventHandler(rightBtn_Click));
            view.timerTick(new EventHandler(timer_Tick));
        }
Пример #3
0
 public MainForm(ImageSliderModel i)
 {
     InitializeComponent();
     model = i;
 }