Пример #1
0
 public PullUpsMainForm()
 {
     InitializeComponent();
     currentUser = new UsersListItem
     {
         ID         = -1,
         UserName   = "",
         InitMax    = -1,
         CurrentMax = -1
     };
 }
Пример #2
0
        private void пользователиToolStripMenuItem_Click(object sender, EventArgs e)
        {
            var userManagementDialog = new UserManagementForm();

            if (userManagementDialog.ShowDialog() == System.Windows.Forms.DialogResult.OK)
            {
                this.currentUser = userManagementDialog.CurrentUser;
                string UserName = this.currentUser.UserName;
                if (UserName.Length >= 200)
                {
                    UserName = UserName.Substring(0, 197) + "...";
                }
                this.UserNameLbl.Text = UserName;
                ReloadResultsSet();
                FillResultsTable();
                DrawPlotFromResults();
            }
        }