public LogKeySpecificLogForm(string workOrder, DataTable selectedSystems, string selectedLogType, bool isFrontEnd, bool isTransition, bool isCrashWorkOrder, bool isLoomSystem) { InitializeComponent(); this.Icon = Icon = Icon.ExtractAssociatedIcon(System.Reflection.Assembly.GetExecutingAssembly().Location); Cursor.Current = Cursors.WaitCursor; this.KeyPreview = true; // Listens to the Key Press Events this.KeyDown += new System.Windows.Forms.KeyEventHandler(this.KeyPressedEvent); _isFrontEnd = isFrontEnd; _isTransition = isTransition; _isCrashWorkOrder = isCrashWorkOrder; _isLoomSystem = isLoomSystem; _workOrder = workOrder; LogFilesGrabber obj = new LogFilesGrabber(_workOrder); Dictionary <string, List <string> > keySpecificLogs = new Dictionary <string, List <string> >(); Dictionary <string, DataTable> dbLogs = new Dictionary <string, DataTable>(); obj.ProcessLogKeySpecificLogs(selectedSystems, selectedLogType, _isTransition, _isLoomSystem, out keySpecificLogs, out dbLogs); StartEndTimeLabel.Text = obj.getStartEndTime(); _key = selectedLogType; _keySpecificLogs = keySpecificLogs; _dbLogs = dbLogs; setControlProperties(); _textHighlighter = new TextHighlighter(_tagsDictionary, Color.Blue); Cursor.Current = Cursors.Default; }
//Fetches the data from LogFilesGrabber Class private Dictionary <string, List <string> > GetWorkOrderDetails() { Dictionary <string, List <string> > fetchedData = new Dictionary <string, List <string> >(); try { LogFilesGrabber obj = new LogFilesGrabber(_workOrder); obj.ProcessSystemSpecificLogs(_cs, _m, _isFrontEnd, _isTransition, _isLoomSystem); fetchedData = obj.GetFetchedData(); dataBaseLogDataGridView.DataSource = obj.GetDBLog(); logIntervalLabel.Text = obj.getStartEndTime(); } catch (IndexOutOfRangeException) { this.Close(); } return(fetchedData); }