示例#1
0
        public MainForm()
        {
            InitializeComponent();
            diagnosticsTextBox1.OutputFile = "Output.log";

            chkListenerEnabled.Checked  = diagnosticsTextBox1.ListenerEnabled;
            chkAutoFlushEnabled.Checked = diagnosticsTextBox1.FlushEnabled;

            procExecutor = new CodeArtEng.Diagnostics.ProcessExecutor();
            propertyGrid1.SelectedObject = procExecutor;
        }
        public MainForm()
        {
            InitializeComponent();
            diagnosticsTextBox1.OutputFile = "Output.log";
            diagnosticsTextBox1.WriteToFile = true;

            chkListenerEnabled.Checked = diagnosticsTextBox1.ListenerEnabled;
            chkAutoFlushEnabled.Checked = diagnosticsTextBox1.FlushEnabled;

            procExecutor = new CodeArtEng.Diagnostics.ProcessExecutor();
            procExecutor.Application = "..\\..\\TestA.bat";
            procExecutor.TraceLogEnabled = true;
            propertyGrid1.SelectedObject = procExecutor;
            propertyGrid2.SelectedObject = diagnosticsTextBox1;
        }