public EasyControl(PresentationModel model) { InitializeComponent(); _presentationModel = model; _presentationModel.easyControlLoad("Save.xml"); BindingSource source = new BindingSource(_presentationModel.GetWindowList(), null); _windowGridView.DataSource = source; // must be last line InitializeGridView(); }
private void MoveMouseInWindowGridView(object sender, MouseEventArgs e) { _presentationModel.MoveMouseInDataGridView(e.X, e.Y, _windowGridView.Width, _presentationModel.GetWindowList().Count); }