private VWA4Common.DBDetector dbDetector = null; // subscribe for db change public UCSiteChooser() { InitializeComponent(); if (dbDetector == null) { dbDetector = VWA4Common.DBDetector.GetDBDetector(); dbDetector.DBPathChanged += new VWA4Common.DBDetectorEventHandler(dbDetector_PathChanged); } Init(); }
/// <summary> /// Constructor. /// </summary> public UCFooter() { InitializeComponent(); if (dbDetector == null) { dbDetector = VWA4Common.DBDetector.GetDBDetector(); // Get instance of event generator dbDetector.UserLogin += new VWA4Common.DBDetectorLoginEventHandler(dbDetector_UserLogin); } commonEvents = VWA4Common.CommonEvents.GetEvents(); commonEvents.DisplayOptionsChanged += new VWA4Common.DisplayOptionsChangedEventHandler(commonEvents_DisplayOptionsChanged); //labeltextcolor = lAddUsers.ForeColor; }
private VWA4Common.DBDetector dbDetector = null; // subscribe for db change public void InitDefault() { _ParamTable.Clear(); if (dbDetector == null) { dbDetector = VWA4Common.DBDetector.GetDBDetector(); dbDetector.SiteChanged += new VWA4Common.DBDetectorEventHandler(dbDetector_SiteChanged); } this.dtSelectedWeek.Value = DateTime.Now; _ParamTable.Add("SWATDate", new ReportParameter("SWATDate", VWA4Common.VWACommon.DateToString(DateTime.Now), VWA4Common.VWACommon.DateToString(DateTime.Now), "DateTime")); _ParamTable.Add("SiteID", new ReportParameter("SiteID", VWA4Common.GlobalSettings.CurrentSiteID.ToString(), VWA4Common.GlobalSettings.CurrentSiteName, "Number")); }
public void Init(DateTime firstDayOfWeek) { _IsActive = true; if (dbDetector == null) { dbDetector = VWA4Common.DBDetector.GetDBDetector(); // Get instance of event generator dbDetector.UserLogin += new VWA4Common.DBDetectorLoginEventHandler(dbDetector_UserLogin); } if (commonEvents == null) { commonEvents = VWA4Common.CommonEvents.GetEvents(); commonEvents.UpdateProductUIData += new VWA4Common.UpdateProductUIDataEventHandler(commonEvents_UpdateProductUI); } }
/// Constructor public UCHeader() { InitializeComponent(); if (dbDetector == null) { dbDetector = VWA4Common.DBDetector.GetDBDetector(); // Get instance of event generator dbDetector.SiteChanged += new VWA4Common.DBDetectorEventHandler(dbDetector_SiteChanged); } if (trackerDetector == null) { trackerDetector = VWA4Common.TrackerDetector.GetTrackerDetector(); // Get instance of event generator trackerDetector.FirstDayOfWeekChanged += new VWA4Common.FirstDayOfWeekDetectorEventHandler(trackerDetector_FirstDayOfWeekChanged); } commonEvents = VWA4Common.CommonEvents.GetEvents(); Initialized = false; }
/// /// Interface methods for User Controls /// public void Init(DateTime firstDayOfWeek) { if (dbDetector == null) { dbDetector = VWA4Common.DBDetector.GetDBDetector(); dbDetector.SiteChanged += new VWA4Common.DBDetectorEventHandler(dbDetector_SiteChanged); dbDetector.UserLogin += new VWA4Common.DBDetectorLoginEventHandler(dbDetector_UserLogin); } if (commonEvents == null) { commonEvents = VWA4Common.CommonEvents.GetEvents(); commonEvents.UpdateProductUIData += new VWA4Common.UpdateProductUIDataEventHandler(commonEvents_UpdateProductUI); } _IsActive = true; }
/// /// Interface methods for User Controls /// public void Init(DateTime firstDayOfWeek) { if (dbDetector == null) { dbDetector = VWA4Common.DBDetector.GetDBDetector(); dbDetector.DBPathChanged += new VWA4Common.DBDetectorEventHandler(dbDetector_PathChanged); //dbDetector.WeekChanged += new DBDetectorEventHandler(dbDetector_WeekChanged); dbDetector.DBPathChanged += new VWA4Common.DBDetectorEventHandler(dbDetector_DBDataChanged); dbDetector.SiteChanged += new VWA4Common.DBDetectorEventHandler(dbDetector_SiteChanged); } if (trackerDetector == null) { trackerDetector = VWA4Common.TrackerDetector.GetTrackerDetector(); trackerDetector.WeekChanged += new VWA4Common.WeekDetectorEventHandler(trackerDetector_WeekChanged); } _IsActive = true; }
/// <summary> /// Constructor /// </summary> public UCTaskList() { InitializeComponent(); if (dbDetector == null) { dbDetector = VWA4Common.DBDetector.GetDBDetector(); // Get instance of event generator //dbDetector.WeekChanged += new DBDetectorEventHandler(dbDetector_WeekChanged); // hook up the WeekChanged event for UCTaskList } if (trackerDetector == null) { trackerDetector = VWA4Common.TrackerDetector.GetTrackerDetector(); trackerDetector.WeekChanged += new VWA4Common.WeekDetectorEventHandler(trackerDetector_WeekChanged); } commonEvents = VWA4Common.CommonEvents.GetEvents(); commonEvents.ShowTaskList += new VWA4Common.ShowTaskListEventHandler(commonEvents_ShowTaskList); commonEvents.HideTaskList += new VWA4Common.HideTaskListEventHandler(commonEvents_HideTaskList); commonEvents.UpdateProductUIData += new VWA4Common.UpdateProductUIDataEventHandler(commonEvents_UpdateProductUI); labeltextcolor = lHome.ForeColor; }
public void Init(DateTime firstDayOfWeek) //display { //AddPeriodFilter(firstDayOfWeek, firstDayOfWeek.AddDays(7)); //ShowHideColumnChooser(true); //_ConfigReportName = "Default View"; if (dbDetector == null) { dbDetector = VWA4Common.DBDetector.GetDBDetector(); dbDetector.DBPathChanged += new VWA4Common.DBDetectorEventHandler(dbDetector_PathChanged); //dbDetector.WeekChanged += new UserControls.DBDetectorEventHandler(dbDetector_WeekChanged); dbDetector.SiteChanged += new VWA4Common.DBDetectorEventHandler(dbDetector_SiteChanged); } if (trackerDetector == null) { trackerDetector = VWA4Common.TrackerDetector.GetTrackerDetector(); trackerDetector.WeekChanged += new VWA4Common.WeekDetectorEventHandler(trackerDetector_WeekChanged); } _IsActive = true; }
public void InitDefault() { _ParamTable.Clear(); if (dbDetector == null) { dbDetector = VWA4Common.DBDetector.GetDBDetector(); //dbDetector.FirstDayOfWeekChanged += new UserControls.DBDetectorEventHandler(dbDetector_FirstDayOfWeekChanged); } if (trackerDetector == null) { trackerDetector = VWA4Common.TrackerDetector.GetTrackerDetector(); trackerDetector.FirstDayOfWeekChanged += new VWA4Common.FirstDayOfWeekDetectorEventHandler(trackerDetector_FirstDayOfWeekChanged); } for (int i = 0; i < _ParamNames.Length; i++) { _ParamTable.Add(_ParamNames[i], new ReportParameter(_ParamNames[i], _DefaultValues[i], _DisplayValues[i], _ParamTypes[i])); } cbDayOfWeek.SelectedIndex = VWA4Common.VWACommon.FirstDayOfWeek - DayOfWeek.Sunday; // default first day of week }
/// /// Interface methods for User Controls /// public void Init(DateTime firstDayOfWeek) { if (dbDetector == null) { dbDetector = VWA4Common.DBDetector.GetDBDetector(); dbDetector.DBPathChanged += new VWA4Common.DBDetectorEventHandler(dbDetector_PathChanged); } if (trackerDetector == null) { trackerDetector = VWA4Common.TrackerDetector.GetTrackerDetector(); trackerDetector.TrackerConfigOutofSync += new VWA4Common.TrackerDetectorEventHandler(trackerDetector_TrackerConfigOutofSync); } if (commonEvents == null) { commonEvents = VWA4Common.CommonEvents.GetEvents(); commonEvents.UpdateProductUIData += new VWA4Common.UpdateProductUIDataEventHandler(commonEvents_UpdateProductUI); } _IsActive = true; }
public void Init(DateTime firstDayOfWeek) //display { if (dbDetector == null) { dbDetector = VWA4Common.DBDetector.GetDBDetector(); dbDetector.DBPathChanged += new VWA4Common.DBDetectorEventHandler(dbDetector_PathChanged); //dbDetector.WeekChanged += new UserControls.DBDetectorEventHandler(dbDetector_WeekChanged); dbDetector.SiteChanged += new VWA4Common.DBDetectorEventHandler(dbDetector_SiteChanged); } if (trackerDetector == null) { trackerDetector = VWA4Common.TrackerDetector.GetTrackerDetector(); trackerDetector.WeekChanged += new VWA4Common.WeekDetectorEventHandler(trackerDetector_WeekChanged); } if (commonEvents == null) { commonEvents = VWA4Common.CommonEvents.GetEvents(); commonEvents.UpdateProductUIData += new VWA4Common.UpdateProductUIDataEventHandler(commonEvents_UpdateProductUI); } _IsActive = true; }
/// /// Interface methods for User Controls /// public void Init(DateTime firstDayOfWeek) { if (dbDetector == null) { dbDetector = VWA4Common.DBDetector.GetDBDetector(); dbDetector.SiteChanged += new VWA4Common.DBDetectorEventHandler(dbDetector_SiteChanged); dbDetector.UserLogin += new VWA4Common.DBDetectorLoginEventHandler(dbDetector_UserLogin); } if (trackerDetector == null) { trackerDetector = VWA4Common.TrackerDetector.GetTrackerDetector(); } if (commonEvents == null) { commonEvents = VWA4Common.CommonEvents.GetEvents(); commonEvents.UpdateProductUIData += new VWA4Common.UpdateProductUIDataEventHandler(commonEvents_UpdateProductUI); } ultraExplorerBar1.GroupSettings.Style = GroupStyle.SmallImagesWithText; ultraExplorerBar1.ImageListSmall = ItemSmallCheckBoxes; _IsActive = true; }