private void ManageFinancesMenuItem_Click(object sender, EventArgs e) => LoadAuthenticationForm(success => { if (success) { var user = (Data["Authentication"] as UserAuthenticator).User; var financialDataForm = new FinancialDataForm(user, FinancialDataFormMode.edit); financialDataForm.ShowDialog(); } else { Console.Beep(); } });
//main.Close(); private static void ShowFinPosition(User user) { var finDataForm = new FinancialDataForm(user, FinancialDataFormMode.view); finDataForm.ShowDialog(); }