Exemplo n.º 1
0
        private void btOpenStats_Click(object sender, EventArgs e)
        {
            MyStatsForm statsForm = new MyStatsForm();

            statsForm.SetExaminedUser(editedUser);
            statsForm.ShowDialog();
        }
Exemplo n.º 2
0
 /// <summary>
 /// Open Stats form. Available to a regular user.
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 void Stats_Click(object sender, EventArgs e)
 {
     // Open admin Dashboard window
     if (myStatsForm == null || myStatsForm.IsDisposed)
     {
         myStatsForm = new MyStatsForm();
     }
     myStatsForm.Show();
     myStatsForm.Activate();
 }