static void Main() { ImageSliderModel model = new ImageSliderModel(); Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); Application.Run(new MainForm(model)); }
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)); }
public MainForm(ImageSliderModel i) { InitializeComponent(); model = i; }