public void Prepare(EnumNED aNED, BindingSource aBds, DSjckja aDSJckja, tygTableAdapter atygTableAdapter1, DataGridView aDgv = null) { bds = aBds; binding(); NED = aNED; dsJckja1 = aDSJckja; tygTableAdapter1 = atygTableAdapter1; dgv = aDgv; ClsD.SetMaxLength(this, dsJckja1.tyg); if (NED == EnumNED.NEW) { bds.AddNew(); DSjckja.tygRow r = (DSjckja.tygRow)((DataRowView)bds.Current).Row; } else if (NED == EnumNED.DETALL) { this.btnSave.Visible = false; } }
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; } }