private void Table_Click_Handler(object sender, EventArgs e) { SingleTable table = new SingleTable(tableService.GetTableFromInt(Convert.ToInt32(Regex.Match(((Button)sender).Name, @"[0-9]+").Value)), member); Tmr_Refresh.Stop(); this.Hide(); table.ShowDialog(); UpdateLabels(); this.Show(); Tmr_Refresh.Start(); }
private void btn_back_Click(object sender, EventArgs e) { this.Hide(); Tmr_Refresh.Stop(); if (member.Role == Staff_Type.Manager) { new Overview(member).ShowDialog(); } else { new login_form().ShowDialog(); } this.Close(); }