public FormSetPasswords(PasswordFile file, AccessLevel accessLevel, string pass) { // // Required for Windows Form Designer support // InitializeComponent(); mPasswordFile = file; mAccessLevel = accessLevel; mExpectedPassword = pass; }
public FormPasswordPrompt(PasswordFile currentPasswordFile, AccessLevel currentAccessLevel) { // // Required for Windows Form Designer support // InitializeComponent(); comboBox_Login.Items.Add(new AccessLevel_Localized(AccessLevel.Operator, ResourceUtility.GetString("RtOperator"))); comboBox_Login.Items.Add(new AccessLevel_Localized(AccessLevel.Supervisor, ResourceUtility.GetString("RtSupervisor"))); comboBox_Login.Items.Add(new AccessLevel_Localized(AccessLevel.Administrator, ResourceUtility.GetString("RtAdministrator"))); mPasswordFile = currentPasswordFile; CurrentAccessLevel = currentAccessLevel; comboBox_Login.SelectedIndex = (int)currentAccessLevel; foreach (AccessLevel_Localized al in comboBox_Login.Items) { if (al.val == mCurrentAccessLevel) { comboBox_Login.SelectedItem = al; } } }