//Shows the latest logs or the last logs which were entered inside the log files of each type
        private void showLatestWorkOrderButton_Click(object sender, EventArgs e)
        {
            bool checkCrash            = true;
            SystemSpecificLogForm form = new SystemSpecificLogForm("", checkCrash);

            form.ShowDialog();
        }
示例#2
0
        private void watchButton_Click(object sender, EventArgs e)
        {
            if (WorkOrderDetailsGridView.SelectedRows.Count == 1)
            {
                int             selectedrowindex = WorkOrderDetailsGridView.SelectedCells[0].RowIndex;
                DataGridViewRow selectedRow      = WorkOrderDetailsGridView.Rows[selectedrowindex];
                string          workOrder        = Convert.ToString(selectedRow.Cells["WorkOrder"].Value);

                SystemSpecificLogForm form = new SystemSpecificLogForm(workOrder, _checkCrash);
                form.ShowDialog();
            }
        }
 //Is triggered when the user searches a work Order by inputing a work order number
 private void searchButton_Click(object sender, EventArgs e)
 {
     try
     {
         bool checkCrash            = false;
         SystemSpecificLogForm form = new SystemSpecificLogForm(workOrderTextBox.Text.ToString(), checkCrash);
         form.ShowDialog();
     }
     catch (ObjectDisposedException exception)
     {
         _logger.WriteLog(exception.Message);
     }
 }