private void ShowPersonalInfoToolStripMenuItem_Click(object sender, EventArgs e) { ControlPanelView cp = new ControlPanelView(um, this); cp.Show(); this.Visible = false; }
public ChangeQuestionView(string _value, ControlPanelView _cp, UserModel _um) { InitializeComponent(); if (_value.Equals("question")) { panel2.Visible = true; this.Text = "Изменение секретного вопроса - Bona Fides"; } else { panel1.Visible = true; this.Text = "Изменение ответа - Bona Fides"; } phaseChangingAnswer = 1; phaseChangingQuestion = 1; controlControlPanelView = _cp; um = _um; label3.Text = "Вопрос: " + um.SecretQuestion; label4.Text = "Вопрос: " + um.SecretQuestion; controlSecuredPasswordController = new SecuredPasswordController(); controlLoginFormController = new LoginFormController(this); }
public RestorePasswordView(ControlPanelView _cp, UserModel _um) { InitializeComponent(); lfController = new LoginFormController(this); spControl = new SecuredPasswordController(); controlControlPanelView = _cp; um = _um; ChangedSuccessfully = false; label1.Text = message2; phase = 2; tb_Input1.Visible = false; tb_Input2.Visible = true; label2.Visible = true; label1.Text = message2; label2.Text = um.SecretQuestion; this.Text = "Изменение пароля"; tb_Input2.Focus(); }
public LoginFormController(ControlPanelView _cp) { connection = DBData.GetDBConnection(); controlControlPanelView = _cp; }