Ejemplo n.º 1
0
 public AddDate(Project J)
 {
     InitializeComponent();
     pjt = J;
     string[] Ans = pjt.Get_Animals();
     foreach (string A in Ans)
     {
         AnimalBox.Items.Add(A);
     }
     AnimalBox.SelectedIndex = 0;
 }
Ejemplo n.º 2
0
 public Calendar(Project P)
 {
     InitializeComponent();
     D = DateTime.Now;
     B = new Bitmap(panel1.Width,panel1.Height);
     g = Graphics.FromImage(B);
     panel1.BackgroundImage = B;
     DW = panel1.Width / 7;
     DaysShown = panel1.Height / DW;
     N = DateTime.Now;
     N = N.AddDays(-1 * (int)N.DayOfWeek);
     pjt = P;
     string[] A = pjt.Get_Animals();
     for (int i = 0; i < A.Length; i++)
     {
         AnimalSel.Items.Add(A[i]);
     }
     AnimalSel.SelectedIndex = 0;
 }