public main_menu() { InitializeComponent(); //r_database.populate(); welcome_label.Text = user_database.return_username(user.return_id()); label1.Font = createCustomFonts(36); }
private void workout_button_Click(object sender, EventArgs e) { Button clickbutton = (Button)sender; if (delete_workout_panel.Visible == false && create_workout_panel.Visible == false) { var workout_screen = new workout_screen(clickbutton.Text); workout_screen.FormClosed += (s, args) => this.Close(); this.Hide(); workout_screen.Show(); } else if (delete_workout_panel.Visible == true) { daemon.remove_workout(daemon.return_useridfromindex(us.return_id()), 17); clickbutton.Visible = false; delete_workout_panel.Visible = false; } }