/// <summary> /// Constructor. /// </summary> public UCDashBoard() { InitializeComponent(); commonEvents = VWA4Common.CommonEvents.GetEvents(); commonEvents.UpdateProductUIData += new VWA4Common.UpdateProductUIDataEventHandler(commonEvents_UpdateProductUI); }
/// /// Interface methods for User Controls /// public void Init(DateTime firstDayOfWeek) { _IsActive = true; commonEvents = VWA4Common.CommonEvents.GetEvents(); this.ulvForms.AllowDrop = true; this.ulvForms.DoubleClick += new EventHandler(btnEditForm_Click); this.ulvFormSeries.DoubleClick += new EventHandler(this.btnEditSeries_Click); this.ulvForms.Click += new EventHandler(ulvForms_Click); this.ulvForms.MouseMove += new MouseEventHandler(ulvForms_MouseMove); this.ulvForms.MouseDown += new MouseEventHandler(ulvForms_MouseDown); this.ulvFormSeries.MouseDown += new MouseEventHandler(ulvFormSeries_MouseDown); this.ulvFormSeries.Click += new EventHandler(ulvFormSeries_Click); this.ulvPrintSeries.AllowDrop = true; this.ulvPrintSeries.DragOver += new DragEventHandler(ulvPrintSeries_DragOver); this.ulvPrintSeries.DragDrop += new DragEventHandler(ulvPrintSeries_DragDrop); this.ulvPrintSeries.Click += new EventHandler(ulvPrintSeries_Click); this.ulvForms.QueryContinueDrag += new QueryContinueDragEventHandler(ulvForms_QueryContinueDrag); this.ulvPrintSeries.MouseDown += new MouseEventHandler(ulvPrintSeries_MouseDown); commonEvents.UpdateProductUIData += new VWA4Common.UpdateProductUIDataEventHandler(commonEvents_UpdateProductUI); this.pnlPrintSeriesPanel.Visible = false; ////populate form series this.loadFormSeries(); //populate forms this.loadForms(); }
public void Init(DateTime firstDayOfWeek) { if (commonEvents == null) { commonEvents = VWA4Common.CommonEvents.GetEvents(); commonEvents.UpdateProductUIData += new VWA4Common.UpdateProductUIDataEventHandler(commonEvents_UpdateProductUI); } _IsActive = true; }
/// <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 void Initialize() { commonEvents = VWA4Common.CommonEvents.GetEvents(); this.Opacity = .00; this.lDetailDescription.Text = ""; this.lblStatus.Text = ""; this.lLeadIn.Text = ""; this.Text = VWA4Common.GlobalSettings.ProductName; this.Icon = VWA4Common.GlobalSettings.ProductIcon; timer1.Interval = TIMER_INTERVAL; timer1.Start(); }
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; }
/// <summary> /// Constructor for printing weekly reports or reviewing reports. /// </summary> /// <param name="isWeekly">Review Reports = false; Print Weekly Reports = true</param> public UCWeeklyReports(bool isWeekly) { InitializeComponent(); commonEvents = VWA4Common.CommonEvents.GetEvents(); commonEvents.ProgressCancelled += new VWA4Common.ProgressCancelledEventHandler(commonEvents_CancelProgress); _IsWeekly = isWeekly; if (_IsWeekly) { btnPrintReportSet.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(204))); } else { btnViewReportSet.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(204))); this.label3.Text = (_IsWeekly ? "Print" : "Review") + " Weekly Reports"; this.lblSerieName.Text = "Report Collection named '" + (_IsWeekly ? VWA4Common.GlobalSettings.ReportsToPrint : VWA4Common.GlobalSettings.ReportsToView) + "' is displayed here."; } }
/// <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; }
/// /// Interface methods for User Controls /// public void Init(DateTime firstDayOfWeek) { if (dbDetector == null) { dbDetector = DBDetector.GetDBDetector(); //dbDetector.PathChanged += new DBDetectorEventHandler(dbDetector_PathChanged); dbDetector.DBPathChanged += new DBDetectorEventHandler(dbDetector_PathChanged); dbDetector.SiteChanged += new DBDetectorEventHandler(dbDetector_SiteChanged); dbDetector.UserLogin += new DBDetectorLoginEventHandler(dbDetector_UserLogin); } if (trackerDetector == null) { trackerDetector = VWA4Common.TrackerDetector.GetTrackerDetector(); trackerDetector.TrackerConfigOutofSync += new VWA4Common.TrackerDetectorEventHandler(trackerDetector_TrackerConfigOutofSync); trackerDetector.WeekChanged += new VWA4Common.WeekDetectorEventHandler(trackerDetector_WeekChanged); } commonEvents = VWA4Common.CommonEvents.GetEvents(); _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); } 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; }
public void InitReportViewerRunTime() { cbChooseReportType.Items.Clear(); cbChooseReportType.Items.Add("Budget to Actual Comparison"); cbChooseReportType.Items.Add("Close-Up View"); cbChooseReportType.Items.Add("Comparison"); cbChooseReportType.Items.Add("Comparison: Site Details"); cbChooseReportType.Items.Add("Detail"); cbChooseReportType.Items.Add("Employee"); cbChooseReportType.Items.Add("Employee Recognition"); cbChooseReportType.Items.Add("Event Orders"); cbChooseReportType.Items.Add("Financial Summary"); cbChooseReportType.Items.Add("Goal List by Completion Percent"); cbChooseReportType.Items.Add("Goal History"); cbChooseReportType.Items.Add("Goal Weekly Status"); cbChooseReportType.Items.Add("Goal Progress"); cbChooseReportType.Items.Add("Goal List"); cbChooseReportType.Items.Add("Low Participation"); cbChooseReportType.Items.Add("Produced Items"); cbChooseReportType.Items.Add("Staff Mtg. Agenda"); cbChooseReportType.Items.Add("SWAT Agenda"); cbChooseReportType.Items.Add("SWAT Notes"); cbChooseReportType.Items.Add("Tabular"); cbChooseReportType.Items.Add("Tracker Comparison"); cbChooseReportType.Items.Add("Transactions by Employee"); cbChooseReportType.Items.Add("Transfers"); cbChooseReportType.Items.Add("Trend"); cbChooseReportType.Items.Add("View Waste"); cbChooseReportType.Items.Add("Waste Avoidance"); cbChooseReportType.Items.Add("Weekly Tabular"); cbChooseReportType.Items.Add("YOY Comparison"); cbChooseReportType.SelectedIndex = 0; commonEvents = VWA4Common.CommonEvents.GetEvents(); commonEvents.ProgressCancelled += new VWA4Common.ProgressCancelledEventHandler(commonEvents_CancelProgress); _progressCancelled = false; }
public UtilitiesInstance() { commonEvents = CommonEvents.GetEvents(); }