Ejemplo n.º 1
0
 private void Initialize()
 {
     cf.sqlconn_client = SQLCON;
     cf.sqlconn_server = SQLCON;
     //Load UserRole
     comboBox1.DataSource    = cf.dtGetEmployeeRole(ConnType);
     comboBox1.DisplayMember = "Description";
     comboBox1.ValueMember   = "RoleName";
     //Load All Users
     dataGridView1.DataSource = cf.dtGetEmployee(ConnType);
     foreach (DataGridViewRow dgr in dataGridView1.Rows)
     {
         dgr.Cells["Username"].Value = cf.DecryptWords(dgr.Cells["Username"].Value.ToString()).ToString();
     }
     ObjectControls(false, true);
 }