private void SetWeeklyTask()
        {
            DailyData dData = new DailyData();

            buttonMonday.ImageAlign    = ContentAlignment.BottomRight;
            buttonTuesday.ImageAlign   = ContentAlignment.BottomRight;
            buttonWednesday.ImageAlign = ContentAlignment.BottomRight;
            buttonFriday.ImageAlign    = ContentAlignment.BottomRight;
            buttonSaturday.ImageAlign  = ContentAlignment.BottomRight;
            buttonSunday.ImageAlign    = ContentAlignment.BottomRight;
            buttonMonday.Tag           = dData.getWeeklyTaskOn((int)DayOfWeek.Monday);
            buttonTuesday.Tag          = dData.getWeeklyTaskOn((int)DayOfWeek.Tuesday);
            buttonWednesday.Tag        = dData.getWeeklyTaskOn((int)DayOfWeek.Wednesday);
            buttonThursday.Tag         = dData.getWeeklyTaskOn((int)DayOfWeek.Thursday);
            buttonFriday.Tag           = dData.getWeeklyTaskOn((int)DayOfWeek.Friday);
            buttonSaturday.Tag         = dData.getWeeklyTaskOn((int)DayOfWeek.Saturday);
            buttonSunday.Tag           = dData.getWeeklyTaskOn((int)DayOfWeek.Sunday);
            WeekDayButtonSetup(buttonMonday);
            WeekDayButtonSetup(buttonTuesday);
            WeekDayButtonSetup(buttonWednesday);
            WeekDayButtonSetup(buttonThursday);
            WeekDayButtonSetup(buttonFriday);
            WeekDayButtonSetup(buttonSaturday);
            WeekDayButtonSetup(buttonSunday);
        }
Example #2
0
 public DoingThings()
 {
     timeComponent = new TimeComponent()
     {
         Location = new Point(12, 100)
     };
     typedata = new TypeData();
     ttdData  = new ThingsToDoData();
     eData    = new EventData();
     dData    = new DailyData();
     pData    = new ProjectData();
     oData    = new ObjectiveData();
     InitializeComponent();
     panelControlGenneral.Controls.Add(timeComponent);
     CurrentTxtBox.KeyPress        += Default.OnlyNumberPress;
     TypeCbBox.DataSource           = typedata.ReadDataTable();
     TypeCbBox.DisplayMember        = "Name";
     TypeCbBox.ValueMember          = "ID";
     TypeCbBox.SelectedIndex        = 1;
     panelControlGenneral.BackColor = Default.color;
 }