public void StartProgress(IRealType type) { if (axAPI != null) { this.type = type; ErrorCode = axAPI.CommConnect(); if (ErrorCode != 0) { new Error(ErrorCode); } return; } Environment.Exit(0); }
public void StartProgress(IRealType type, SqlConnection sql) { if (AxAPI != null) { Sql = sql; Type = type; ErrorCode = AxAPI.CommConnect(); sql.OpenAsync(); if (ErrorCode != 0) { new Error(ErrorCode); } return; } Environment.Exit(0); }
public void StartProgress(IRealType type, string connect) { if (axAPI != null) { this.type = type; Sql = new SqlConnection(connect); Sql.OpenAsync(); ErrorCode = axAPI.CommConnect(); new TemporaryStorage(Sql); if (ErrorCode != 0) { new Error(ErrorCode); } return; } Environment.Exit(0); }