public FormModificaPassword(Class.PasswordManager pwdManager, DBL.LinguaManager linguaMngr) { InitializeComponent(); this.pwdManager = pwdManager; this.linguaMngr = linguaMngr; Class.PasswordManager.LivelloPassword lastLivello = this.pwdManager.GetLastLivello(); rbLivelloTecnico.Enabled = lastLivello >= Class.PasswordManager.LivelloPassword.Tecnico; rbLivelloCostruttore.Enabled = lastLivello >= Class.PasswordManager.LivelloPassword.Costruttore; AdjustCulture(); }
public FormMenuHome(Class.Core[] core, Class.PlcMacchinaManager plcMacchina, Class.PasswordManager pwdManager, DBL.LinguaManager linguaMngr, object repaintLock) { InitializeComponent(); this.core = core; this.plcMacchina = plcMacchina; this.pwdManager = pwdManager; this.linguaMngr = linguaMngr; this.repaintLock = repaintLock; AdjustCulture(); if (!Properties.Settings.Default.UsaPassword) { this.Width -= btnPassword.Width; btnPassword.Visible = false; } }