private void EditAccount(Account account) { _currentAccountData = new AddAccount(); _currentAccountData.Name.Text = account.Name; _currentAccountData.Login.Text = account.Login; _currentAccountData.Password.Text = account.Password; _currentAccountData.IsEdit = true; ShowAddEditAccountDialog(); }
void AddAccount_Click(object sender, EventArgs e) { _currentAccountData = new AddAccount(); ShowAddEditAccountDialog(); }