Exemplo n.º 1
0
 public void Prepare(EnumNED aNED, BindingSource aBds, DSjckja aDSJckja,
                     tygTableAdapter atygTableAdapter1, DataGridView aDgv = null)
 {
     bds = aBds;
     fillCmbs();
     binding();
     NED              = aNED;
     dsJckja1         = aDSJckja;
     tygTableAdapter1 = atygTableAdapter1;
     dgv              = aDgv;
     ClsD.SetMaxLength(this, dsJckja1.tyg);
     defaultPassword = ClsMSSQL.GetConfigStr("DefaultPassword", ClsDBCon.ConStrKj);
     minPwLen        = ClsMSSQL.GetConfigInt("MinPWLen", ClsDBCon.ConStrKj);
     if (NED == EnumNED.NEW)
     {
         bds.AddNew();
         DSjckja.tygRow r = (DSjckja.tygRow)((DataRowView)bds.Current).Row;
     }
     else if (NED == EnumNED.DETALL)
     {
         this.btnSave.Visible = false;
     }
 }
Exemplo n.º 2
0
 private void refresh()
 {
     nUDMinPWLen.Value = ClsMSSQL.GetConfigInt("MinPWLen", ClsDBCon.ConStrKj);
     txtPW.Text        = ClsMSSQL.GetConfigStr("DefaultPassWord", ClsDBCon.ConStrKj);
 }