public Cal() { m_Years = new int [0]; InitializeComponent(); l = new Label(); VersionToShow = new List<VersionInfo>(); m_CritGui = new CritGui(this); ColFromDayOfWeek = new Dictionary<DayOfWeek, int>(); AddMonths(m_Year); AddDays(); PopulateDays(2009,12); this.CalDataGridView.VirtualMode = true; this.CalDataGridView.RowCount = 200; }
public Cal(DataManager datamanager) { InitializeComponent(); m_DataManager = datamanager; VersionToShow = new List<VersionInfo>(); this.CalDataGridView.VirtualMode = true; m_CritGui = new CritGui(this); ColFromDayOfWeek = new Dictionary<DayOfWeek, int>(); m_Years = new int [0]; int [] years = m_DataManager.GetYears(); int LatestYear = 0; foreach(int year in years) { AddYear(year); LatestYear = (LatestYear < year) ? year : LatestYear; } AddMonths(LatestYear); AddDays(); PopulateCalendar(); PopulateTime(); // m_CritGui.PerformSearch(); // this.VersionTableLayoutPanel.Controls.Add(new CalendarPanel(), 0, 0); }
public HourButton(int Hour,int ampm, CritGui critgui) { if (Hour == 12 && ampm == 0) { m_Hour = 0; } else if (Hour == 12 && ampm == 1) { m_Hour = 12; } else { m_Hour = Hour + (ampm * 12); } m_AmPm = ampm; m_CritGui = critgui; m_CritGui.m_HourButton.Add(m_Hour, this); this.Text = Convert.ToString(Hour); m_State = StateEnum.NoPreference; }
public DayOfWeekButton(DayOfWeek day, CritGui critgui) { m_DayOfWeek = day; this.Text = day.ToString().Substring(0,3); this.AutoSize = true; m_CritGui = critgui; m_CritGui.m_DayNames.Add(m_DayOfWeek,this); m_State = StateEnum.NoPreference; }
public DayOfMonthButton(int date, CritGui critgui) { m_DayOfMonthNum = date; this.Text = Convert.ToString(date); m_CritGui = critgui; m_CritGui.m_DayOfMonth.Add(m_DayOfMonthNum, this); this.AutoSize = true; State = StateEnum.NoPreference; }
public YearButton(int year, CritGui critgui) { this.m_Year = year; this.Text = Convert.ToString(year); m_CritGui = critgui; m_CritGui.m_YearCheckBox.Add(m_Year, this); this.AutoSize = true; State = StateEnum.NoPreference; }
public MinuteButton(int Minute, CritGui critgui) { m_CritGui = critgui; m_Minute = Minute; m_CritGui.m_MinuteButton.Add(m_Minute, this); this.Text = Convert.ToString(Minute); m_State = StateEnum.NoPreference; }
public MonthButton(int Month, CritGui critgui) { m_Month = Month; m_CritGui = critgui; m_CritGui.m_MonthButton.Add(m_Month, this); this.Text = info.GetMonthName(m_Month); m_State = StateEnum.NoPreference; }
public YearButton(int year, CritGui critgui) { this.m_Year = year; this.Anchor = System.Windows.Forms.AnchorStyles.None; this.AutoSize = true; this.BackColor = System.Drawing.Color.BurlyWood; this.FlatStyle = System.Windows.Forms.FlatStyle.Popup; this.Size = new System.Drawing.Size(79, 23); this.TabIndex = 12; this.UseVisualStyleBackColor = false; this.Text = Convert.ToString(year); m_CritGui = critgui; m_CritGui.m_YearCheckBox.Remove(m_Year); m_CritGui.m_YearCheckBox.Add(m_Year, this); this.AutoSize = true; State = StateEnum.NoPreference; }
private void AddButtond() { if (m_CritGui == null) { m_CritGui = new CritGui(this); } m_Years = new int[0]; int[] years = m_FTObjects.GetYears; int LatestYear = 0; foreach (YearButton yb in YearButtonList) { this.YearPanel.Controls.Remove(yb); } AddAllYear(years); foreach (int year in years) { LatestYear = (LatestYear < year) ? year : LatestYear; } cal = new CalendarText(this, m_FTObjects.GetYears); if (buttonsAdded == false) { ColFromDayOfWeek = new Dictionary<DayOfWeek, int>(); AddMonths(LatestYear); AddDays(); PopulateCalendar(); PopulateTime(); buttonsAdded = true; } new Thread(SetSplit).Start(); }
public MonthButton(int Month, CritGui critgui) { this.Anchor = System.Windows.Forms.AnchorStyles.None; this.AutoSize = false; this.BackColor = System.Drawing.Color.BurlyWood; this.FlatStyle = System.Windows.Forms.FlatStyle.Popup; this.Size = new System.Drawing.Size(79, 23); this.TabIndex = 12; this.UseVisualStyleBackColor = false; m_Month = Month; m_CritGui = critgui; m_CritGui.m_MonthButton.Add(m_Month, this); this.Text = info.GetMonthName(m_Month); m_State = StateEnum.NoPreference; }
public MinuteButton(int Minute, CritGui critgui) { m_CritGui = critgui; m_Minute = Minute; this.AutoSize = false; this.FlatStyle = System.Windows.Forms.FlatStyle.Popup; this.Size = new System.Drawing.Size(29, 23); this.BackColor = System.Drawing.Color.BurlyWood; this.UseVisualStyleBackColor = true; m_CritGui.m_MinuteButton.Add(m_Minute, this); if (Minute < 10) { this.Text = "0" + Convert.ToString(Minute); } else { this.Text = Convert.ToString(Minute); } m_State = StateEnum.NoPreference; }
public HourButton(int Hour, int ampm, CritGui critgui) { if (Hour == 12 && ampm == 0) { m_Hour = 0; } else if (Hour == 12 && ampm == 1) { m_Hour = 12; } else { m_Hour = Hour + (ampm * 12); } m_AmPm = ampm; m_CritGui = critgui; this.AutoSize = false; this.FlatStyle = System.Windows.Forms.FlatStyle.Popup; this.Size = new System.Drawing.Size(29, 23); this.BackColor = System.Drawing.Color.BurlyWood; this.UseVisualStyleBackColor = true; m_CritGui.m_HourButton.Add(m_Hour, this); this.Text = Convert.ToString(Hour); m_State = StateEnum.NoPreference; }
public DayOfWeekButton(DayOfWeek day, CritGui critgui) { this.Anchor = System.Windows.Forms.AnchorStyles.None; this.AutoSize = false; this.BackColor = System.Drawing.Color.BurlyWood; this.FlatStyle = System.Windows.Forms.FlatStyle.Popup; this.Size = new System.Drawing.Size(79, 23); this.TabIndex = 12; this.UseVisualStyleBackColor = false; m_DayOfWeek = day; this.Text = day.ToString(); m_CritGui = critgui; m_CritGui.m_DayNames.Add(m_DayOfWeek, this); m_State = StateEnum.NoPreference; }
public DayOfMonthButton(int date, CritGui critgui) { m_DayOfMonthNum = date; this.AutoSize = false; this.FlatStyle = System.Windows.Forms.FlatStyle.Popup; this.Size = new System.Drawing.Size(29, 23); this.BackColor = System.Drawing.Color.BurlyWood; this.UseVisualStyleBackColor = true; this.Text = Convert.ToString(date); m_CritGui = critgui; m_CritGui.m_DayOfMonth.Add(m_DayOfMonthNum, this); this.AutoSize = true; State = StateEnum.NoPreference; }