private void ptbChart_Click(object sender, EventArgs e)
        {
            string usn = dgvUsername.SelectedCells[0].OwningRow.Cells[0].Value.ToString();

            if (rbDay.Checked)
            {
                frmChart frm = new frmChart(dtpStaticDate, 1, usn, dtpEndDate);
                frm.ShowDialog();
            }
            else if (rbMonth.Checked)
            {
                frmChart frm = new frmChart(dtpStaticDate, 2, usn, dtpEndDate);
                frm.ShowDialog();
            }
            else if (rbYear.Checked)
            {
                frmChart frm = new frmChart(dtpStaticDate, 3, usn, dtpEndDate);
                frm.ShowDialog();
            }
            else if (rbBetWeen.Checked)
            {
                frmChart frm = new frmChart(dtpStaticDate, 4, usn, dtpEndDate);
                frm.ShowDialog();
            }
            else
            {
                frmChart frm = new frmChart(dtpStaticDate, 5, usn, dtpEndDate);
                frm.ShowDialog();
            }
        }
        private void ptbChart_Click(object sender, EventArgs e)
        {
            frmChart frm = new frmChart(dmyt, choice, cbUser.Text, dmyEndt);

            frm.ShowDialog();
        }