示例#1
0
        private void MainForm_Shown(object sender, EventArgs e)
        {
            new StartForm().ShowDialog();
            if (DBFileName != null)
            {
                DB = SqliteWrapper.Open(DBFileName);
                Tuple<DateTime, string> tuple = DB.Created();
                Manager = new DBManager(DB);
                lCreatedDateTime.Text = tuple.Item1.ToString();
                lCreatedMessage.Text = tuple.Item2;
                refresh_party();
                refresh_rounds_info();

                //
                // Load round more than two
                //
                var max_round = Manager.GetMaxRound();
                for (int i = 2; i <= max_round; i++)
                {
                    var nt = CreateTabPage();

                    var control = new RoundControl(i) { Dock = DockStyle.Fill };
                    nt.Controls.Add(control);
                    rounds.Add(i, control);
                }
            }
        }