Esempio n. 1
0
        public FManagerEmployees()
        {
            mEmp = new ManagerEmployees();
            InitializeComponent();

            dataGridView                       = new DataGridView();
            dataGridView.Width                 = dataGridView1.Width;
            dataGridView.Height                = dataGridView1.Height;
            dataGridView.Left                  = dataGridView1.Left;
            dataGridView.Top                   = dataGridView1.Top;
            dataGridView.ColumnCount           = 14;
            dataGridView.ReadOnly              = true;
            dataGridView.AllowUserToAddRows    = false;
            dataGridView.AllowUserToDeleteRows = false;
            dataGridView.AutoGenerateColumns   = false;

            dataGridView.Columns[0].Name  = "empid";
            dataGridView.Columns[1].Name  = "lastname";
            dataGridView.Columns[2].Name  = "firstname";
            dataGridView.Columns[3].Name  = "title";
            dataGridView.Columns[4].Name  = "titleofcourtesy";
            dataGridView.Columns[5].Name  = "birthdate";
            dataGridView.Columns[6].Name  = "hiredate";
            dataGridView.Columns[7].Name  = "address";
            dataGridView.Columns[8].Name  = "city";
            dataGridView.Columns[9].Name  = "region";
            dataGridView.Columns[10].Name = "postalcode";
            dataGridView.Columns[11].Name = "country";
            dataGridView.Columns[12].Name = "phone";
            dataGridView.Columns[13].Name = "mgrid";

            this.Controls.Add(dataGridView);
        }
Esempio n. 2
0
 public EmployeesController()
 {
     /*Instanciando el objeto dentro del contructor*/
     employe = new ManagerEmployees();
 }