Example #1
0
        private void MainWindow_Load(object sender, EventArgs e)
        {
            if (Properties.Settings.Default.Guid == null)
            {
                Properties.Settings.Default.Guid = Guid.NewGuid().ToString();
                DatabaseOperations.AddNewUserGuid(Properties.Settings.Default.Guid);
            }
            else
            {
                _isSaveNeeded = DatabaseValidation.CheckUserGuid(Properties.Settings.Default.Guid);
                downloadHistoryDGV.DataSource = DatabaseOperations.FillDataGridView(Properties.Settings.Default.Guid);
            }

            MessageBox.Show(Properties.Settings.Default.Guid);
        }