Пример #1
0
 private void dataGrid1_MouseDoubleClick(object sender, MouseButtonEventArgs e)
 {
     processingProgram = (ProcessingProgram)dataGrid1.SelectedItem;
     processingProgram.refreshProcess(processingProgram);
     textCPU.Text         = $"CPU usage:\n{processingProgram.CPU}";
     textMemory.Text      = $"Memory usage:\n{processingProgram.Memory}";
     textStartTime.Text   = $"Start Time:\n{processingProgram.StartTime}";
     textRunningTime.Text = $"Running Time: \n{processingProgram.RunningTime}";
     textComment.Text     = $"{processingProgram.Comment}";
 }
Пример #2
0
        private void onlineModeTimer_Tick(object sender, EventArgs e)
        {
            processingProgram.refreshProcess(processingProgram);

            textCPU.Text         = $"CPU usage:\n{processingProgram.CPU}";
            textMemory.Text      = $"Memory usage:\n{processingProgram.Memory}";
            textStartTime.Text   = $"Start Time:\n{processingProgram.StartTime}";
            textRunningTime.Text = $"Running Time: \n{processingProgram.RunningTime}";
            textComment.Text     = $"{processingProgram.Comment}";

            /* textComment.Text = $"{i}";
             * i++; */
        }