/// <summary> /// Загрузка формы, начальная инициализация /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void Form1_Load(object sender, EventArgs e) { //CPORT.Open(); testDev = new D250M(CPORT, 1); if (testDev.iserror) { string Info; Info = DateTime.Now.Hour.ToString() + ":" + DateTime.Now.Minute + ":" + DateTime.Now.Second + " "; this.textBox2.AppendText(Info + testDev.errorcode + "\r\n"); button1.Enabled = false; } OracleBaseCon = new OracleConnection(); oprosstarted = false; ReadMaskFromFile(); ReBindQue(); }
/// <summary> /// Загрузка формы, начальная инициализация /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void Form1_Load(object sender, EventArgs e) { Excel = new Microsoft.Office.Interop.Excel.Application(); //CPORT.Open(); ReadMaskFromFile(); ReBindQue(); OracleBaseCon = new OracleConnection(); //ConnectToOrclBase(); testDev = new D250M(CPORT, 1); if (testDev.Error.isError) { addToLog(testDev.Error.Message); butReadOnce.Enabled = false; butStartCicleRead.Enabled = false; SaveErrortoBase(); } oprosstarted = false; butStartCicleRead.Enabled = true; butStopCicleRead.Enabled = false; }