Exemplo n.º 1
0
        void DateDisplay_PreBtn1(object sender, EventArgs e)
        {
            condition = 1;
            DisplayDetailDate displayDate = sender as DisplayDetailDate;

            dtpk.Value = dtpk.Value.AddDays(-1);
        }
Exemplo n.º 2
0
        private void AddDisplayDetailDateCondition(DateTime date)
        {
            condition = 1;
            var DetailDate = new DisplayDetailDate(dtpk.Value);

            DetailDate.Location = new Point(0, 0);
            DetailDate.Size     = new Size(1009, 620);
            PanelDisplay.Controls.Add(DetailDate);
            DetailDate.Nextbtn += DateDisplay_NextBtn1;
            DetailDate.Prebtn  += DateDisplay_PreBtn1;
        }
Exemplo n.º 3
0
        private void buttonDetailDate_Click(object sender, EventArgs e)
        {
            ActivateButton(sender, RGBColors.color3);
            var DetailDate = new DisplayDetailDate(dtpk.Value);

            DetailDate.Location = new Point(0, 0);
            DetailDate.Size     = new Size(1009, 620);
            DetailDate.Nextbtn += DateDisplay_NextBtn1;
            DetailDate.Prebtn  += DateDisplay_PreBtn1;
            PanelDisplay.Controls.Clear();
            PanelDisplay.Controls.Add(DetailDate);
        }
Exemplo n.º 4
0
        void Detail_Btn(object sender, EventArgs e)
        {
            DisplayChangeDate displayDate = sender as DisplayChangeDate;

            PanelDisplay.Controls.Clear();

            ActivateButton(ButtonDetailDate, RGBColors.color3);
            DisplayDetailDate DetailDate = new DisplayDetailDate(displayDate.Solar);

            DetailDate.Location = new Point(0, 0);
            DetailDate.Size     = new Size(1009, 620);
            PanelDisplay.Controls.Add(DetailDate);
        }