private void ConfBtn_Click(object sender, EventArgs e) { this._StatusLbl.Text = "Loading..."; LoadSetup(); this._StatusLbl.Text = "Loading - done."; int error = GT668Class.GT668GetError(); if (error == 0) { return; } string ErrMsg = ""; GT668Class.GT668GetErrorMessage(error, ref ErrMsg); int num = (int)Interaction.MsgBox((object)("Error: " + ErrMsg), MsgBoxStyle.Exclamation, (object)"Error"); GT668Class.GT668ClearError(); }
private void StartBtn_Click(object sender, EventArgs e) { this._StatusLbl.Text = "Starting..."; GT668Class.GT668StartMeasurements(); this._StopBtn.Enabled = true; this._StartBtn.Enabled = false; this._ConfBtn.Enabled = false; this._StatusLbl.Text = "Starting - done."; int error = GT668Class.GT668GetError(); if (error != 0) { string ErrMsg = ""; GT668Class.GT668GetErrorMessage(error, ref ErrMsg); int num = (int)Interaction.MsgBox((object)("Error: " + ErrMsg), MsgBoxStyle.Exclamation, (object)"Error"); GT668Class.GT668ClearError(); } this.RawRead = 0U; }