コード例 #1
0
ファイル: MainForm.cs プロジェクト: ShomreiTorah/Rafflizer
        public MainForm()
        {
            InitializeComponent();

            showTickets.SetupYearlyButton<RaffleTicket>(
                t => t.Year,
                year => new TicketsForm(year) { MdiParent = this }.Show(),
                defaultYear: DateTime.Now.AddMonths(5).Year	//We start using this in December of the previous year
            );
            databases = new DBGallery(dbGallery.Gallery);
        }
コード例 #2
0
ファイル: MainForm.cs プロジェクト: esn8404/Rafflizer
        public MainForm()
        {
            InitializeComponent();

            showTickets.SetupYearlyButton <RaffleTicket>(
                t => t.Year,
                year => new TicketsForm(year)
            {
                MdiParent = this
            }.Show(),
                defaultYear: DateTime.Now.AddMonths(5).Year                     //We start using this in December of the previous year
                );
            databases = new DBGallery(dbGallery.Gallery);
        }