public static RoboSep_Reports getInstance() { if (myReports == null) { myReports = new RoboSep_Reports(); } GC.Collect(); return(myReports); }
private void hex_logs_Click(object sender, EventArgs e) { // refresh run log content RoboSep_Reports.RefreshList(); RoboSep_UserConsole.getInstance().SuspendLayout(); RoboSep_Reports reportsWindow = RoboSep_Reports.getInstance(); reportsWindow.Location = new Point(0, 0); RoboSep_UserConsole.getInstance().Controls.Add(reportsWindow); RoboSep_UserConsole.ctrlCurrentUserControl = reportsWindow; closeHomeWindow(); reportsWindow.BringToFront(); // LOG string logMSG = "Logs button clicked"; //GUI_Controls.uiLog.LOG(this, "hex_logs_Click", GUI_Controls.uiLog.LogLevel.EVENTS, logMSG); LogFile.AddMessage(System.Diagnostics.TraceLevel.Info, logMSG); }
private RoboSep_Logs() { InitializeComponent(); TabCheck = RoboSep_UserConsole.intCurrentLogTab; // LOG string logMSG = "Initializing Logs Tab Page "; //GUI_Controls.uiLog.LOG(this, "RoboSep_Logs", GUI_Controls.uiLog.LogLevel.EVENTS, logMSG); LogFile.AddMessage(System.Diagnostics.TraceLevel.Info, logMSG); TabControls[0] = RoboSep_Reports.getInstance(); TabControls[1] = new BasePannel(); TabControls[2] = TabControls[1]; // resize controls to fit TabControls[1].Size = TabControls[0].Size; TabControls[2].Size = TabControls[0].Size; for (int i = 0; i < TabControls.Length; i++) { TabControls[i].Location = new Point(0, 0); } this.Controls.Add(TabControls[TabCheck]); }
public static void RefreshList() { RoboSep_Reports.getInstance().LoadReportContent2(); }