public AbsencePrintArgs(AbsencePlanningView view, int year, long worldID, List<StoreToWorld> worldList, Dictionary<long, BindingList<BzEmployeeHoliday>> dataSource, long storeID, string storeName, string worldName, int monthOrWeek, Dictionary<PropertyInfo, bool> sortInfo, bool isaustria) { m_View = view; m_Year = year; m_WordID = worldID; m_StoreID = storeID; m_DataSource = dataSource; m_StoreName = storeName; m_WorldName = worldName; m_MonthOrWeek = monthOrWeek; m_SortInfo = sortInfo; m_WorldList = worldList; m_IsAustria = isaustria; BuildDateRange(); }
public AbsencePrintArgs(AbsencePlanningView view, int year, long worldID, List <StoreToWorld> worldList, Dictionary <long, BindingList <BzEmployeeHoliday> > dataSource, long storeID, string storeName, string worldName, int monthOrWeek, Dictionary <PropertyInfo, bool> sortInfo, bool isaustria) { m_View = view; m_Year = year; m_WordID = worldID; m_StoreID = storeID; m_DataSource = dataSource; m_StoreName = storeName; m_WorldName = worldName; m_MonthOrWeek = monthOrWeek; m_SortInfo = sortInfo; m_WorldList = worldList; m_IsAustria = isaustria; BuildDateRange(); }
private void rdoCheckedChanged(object sender, System.EventArgs e) { ViewStyle = rdo_Yearly.Checked ? AbsencePlanningView.YearlyView // : rdo_WeeklyView.Checked ? AbsencePlanningView.Weekly : AbsencePlanningView.MonthlyView; }
protected virtual void OnChangeView(AbsencePlanningView newview) { if (newview != _planningview) { _planningview = newview; btnView.Text = GetLocalized(ViewAbsencePlanning.ToString ()); ChangeView(); //switch (_planningview) //{ // case AbsencePlanningView.Yearly: BuildYearlyColumns(); break; // case AbsencePlanningView.Monthly: BuildMonthlyColumns(); break; // case AbsencePlanningView.Weekly: BuildWeeklyColumns(); break; // default: // throw new InvalidEnumArgumentException(); //} } }