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();
        }
Ejemplo n.º 2
0
        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();
        }
Ejemplo n.º 3
0
 private void MoveMouseInWindowGridView(object sender, MouseEventArgs e)
 {
     _presentationModel.MoveMouseInDataGridView(e.X, e.Y, _windowGridView.Width, _presentationModel.GetWindowList().Count);
 }