private void statisticsButton_Click(object sender, EventArgs e) { StatisticOfUser statOfUser = new StatisticOfUser(); statOfUser.Owner = this; statOfUser.Show(); _currentUser = main.CurrentUser; loginBox.Text = _currentUser.Login; выToolStripMenuItem.Text = "Вы: " + _currentUser.Login; }
private void openStat() { StatisticOfUser statOfUser = new StatisticOfUser(); statOfUser.Owner = this; statOfUser.ShowDialog(); _currentUser = main.CurrentUser; выToolStripMenuItem.Text = "Вы: " + _currentUser.Login; }