Ejemplo n.º 1
0
        private void StatisticOfUser_Load(object sender, EventArgs e)
        {
             main = this.Owner as TrainedForm;
            if (main != null)
            {
                _currentUser = main.CurrentUser;
                выToolStripMenuItem.Text = "Вы: " + _currentUser.Login;
                
            }
            else
            {
                mainAdmin = this.Owner as ControlAccounts;
                _adminUser = mainAdmin.CurrentUser;
                _currentUser = mainAdmin.ChosenUser;
                выToolStripMenuItem.Text = "Вы: " + _adminUser.Login;

            }
            this.Text += " " + _currentUser.Login;
            fillDataGreed();
            if (listOfTrainings.SelectedRows.Count != 0)
            {
                chosenLevel = Convert.ToInt32(listOfTrainings.Rows[0].Cells[2].Value.ToString());
                paintPlot(0);
            }

            
        }
Ejemplo n.º 2
0
 private void controlAccountsBut_Click(object sender, EventArgs e)
 {
     ControlAccounts controlAcc = new ControlAccounts();
     controlAcc.Owner = this;
     controlAcc.ShowDialog();
 }