예제 #1
0
        private void setday(viewDay v, string y, string M, string d, string Info)
        {
            v.setView(y, M, d, Info);

            string ymd = y + "/" + M + "/" + d;

            //if (!dic曜日.ContainsKey(ymd)) { dic曜日.Add(ymd, v); }
        }
예제 #2
0
 public bool setDay(int weekday, string Year, string Month, string day, string info)
 {
     if (weekday > weekdays)
     {
         return(false);
     }
     else
     {
         viewDay vD = (viewDay)this.Controls[viewDayname + weekday.ToString()];
         setday(vD, Year, Month, day, info);
         return(true);
     }
 }
예제 #3
0
        public viewWeek()
        {
            InitializeComponent();

            viewDay1.BackColor = Color.Plum;
            viewDay2.BackColor = Color.White;
            viewDay3.BackColor = Color.White;
            viewDay4.BackColor = Color.White;
            viewDay5.BackColor = Color.White;
            viewDay6.BackColor = Color.White;
            viewDay7.BackColor = Color.PowderBlue;


            foreach (Control c in this.Controls)
            {
                if (c is viewDay)
                {
                    viewDay v = (viewDay)(c);
                    v.ClickAllControls += viewDayClick;
                }
            }
        }
예제 #4
0
        public void setInfo(int weekday, string str大科目番号)
        {
            viewDay vD = (viewDay)this.Controls[viewDayname + weekday.ToString()];

            vD.setView(str大科目番号);
        }
예제 #5
0
        public string getdate(int weekday)
        {
            viewDay vD = (viewDay)this.Controls[viewDayname + weekday.ToString()];

            return(vD.getdate());
        }