예제 #1
0
        static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);

            try
            {
                if (Properties.Settings.Default.SeasonID < 0)
                {
                    SeasonSelectForm ssForm = new SeasonSelectForm();
                    ssForm.ShowDialog();
                }

                MatchListForm frm = new MatchListForm();
                Application.Run(frm);
            }
            catch (Exception)
            {
                Console.Out.WriteLine("Could not create form due to database issues");
            }
        }
예제 #2
0
        static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);

            try
            {
                if (Properties.Settings.Default.SeasonID < 0)
                {
                    SeasonSelectForm ssForm = new SeasonSelectForm();
                    ssForm.ShowDialog();

                }

                MatchListForm frm = new MatchListForm();
                Application.Run(frm);
            }
            catch (Exception)
            {
                Console.Out.WriteLine("Could not create form due to database issues");
            }
        }
예제 #3
0
 private void btnSetSeason_Click(object sender, EventArgs e)
 {
     SeasonSelectForm seasonSelect = new SeasonSelectForm();
     System.Windows.Forms.DialogResult res = seasonSelect.ShowDialog();
     if (res == System.Windows.Forms.DialogResult.OK)
     {
         this.seasonID = Properties.Settings.Default.SeasonID;
         this.loadSelectedSeason();
         this.competitionID = -1;
         Properties.Settings.Default.CompetitionID = -1;
         Properties.Settings.Default.Save();
         lblCompetitionValue.Text = "No Competition Selected";
         this.LoadData();
     }
 }