Ejemplo n.º 1
0
        // Do next week's Processing
        private void button1_Click(object sender, EventArgs e)
        {
            if (fund.FundHistory[fund.FundHistory.Count - 1].WeeklyDate.AddDays(7) > DateTime.Today)
            {
                MessageBox.Show("You cannot complete the processing until the close on Friday " + fund.FundHistory[fund.FundHistory.Count - 1].WeeklyDate.AddDays(7).ToShortDateString() + ".");
                return;
            }

               Processor nextProc = Util.DeepClone<Processor>(fund.FundHistory[fund.FundHistory.Count - 1]);
               nextProc.WeeklyDate = nextProc.WeeklyDate.AddDays(+7);
               nextProc.StockPick = "";
               WeeklyProcessor currentWeeksProcessorForm = new WeeklyProcessor(this, fund.FundHistory.Count - 1);
               currentWeeksProcessorForm.Show();
        }
Ejemplo n.º 2
0
 private void OnCellDoubleClick(object sender, DataGridViewCellEventArgs e)
 {
     int RowIndex = fund.FundHistory.Count - e.RowIndex - 1;
     if (RowIndex > 0)
     {
         WeeklyProcessor WP = new WeeklyProcessor(fund.FundHistory[RowIndex], fund.FundHistory[RowIndex + -1]);
         WP.Show();
     }
 }