Ejemplo n.º 1
0
        private void setLastRunTimeToolStripMenuItem_Click(object sender, EventArgs e)
        {
            frmDateSelect frm         = new frmDateSelect();
            DateTime      lastRunTime = UserSettings.getInstance().Configuration.LastTimeRun;

            if (lastRunTime < DateTime.Now.AddYears(-100))
            {
                frm.SelectionDate = DateTime.Now;
            }

            if (frm.ShowDialog() == DialogResult.OK)
            {
                UserSettings.getInstance().Configuration.LastTimeRun = frm.SelectionDate;
            }
        }
Ejemplo n.º 2
0
        private void specificDayToolStripMenuItem_Click(object sender, EventArgs e)
        {
            frmDateSelect dialog = new frmDateSelect();

            dialog.Parent        = this.Parent;
            dialog.StartPosition = FormStartPosition.CenterParent;

            if (dialog.ShowDialog() == DialogResult.OK)
            {
                DateTime dateToRun = dialog.SelectionDate.Date;
                UserSettings.getInstance().Configuration.DatesRun.Remove(dateToRun);
                datesToRun.Enqueue(dialog.SelectionDate.Date);
                processDepositQueue();
            }
        }
Ejemplo n.º 3
0
        private void specificDayToolStripMenuItem_Click(object sender, EventArgs e)
        {
            frmDateSelect dialog = new frmDateSelect();
            dialog.Parent = this.Parent;
            dialog.StartPosition = FormStartPosition.CenterParent;

            if (dialog.ShowDialog() == DialogResult.OK)
            {
                DateTime dateToRun = dialog.SelectionDate.Date;
                UserSettings.getInstance().Configuration.DatesRun.Remove(dateToRun);
                datesToRun.Enqueue(dialog.SelectionDate.Date);
                processDepositQueue();
            }
        }
Ejemplo n.º 4
0
        private void setLastRunTimeToolStripMenuItem_Click(object sender, EventArgs e)
        {
            frmDateSelect frm = new frmDateSelect();
            DateTime lastRunTime = UserSettings.getInstance().Configuration.LastTimeRun;

            if (lastRunTime < DateTime.Now.AddYears(-100))
                frm.SelectionDate = DateTime.Now;

            if (frm.ShowDialog() == DialogResult.OK)
            {
                UserSettings.getInstance().Configuration.LastTimeRun = frm.SelectionDate;
            }
        }