コード例 #1
0
ファイル: ConnectAPI.cs プロジェクト: w1r2p1/GoblinBat
        public void StartProgress(IRealType type)
        {
            if (axAPI != null)
            {
                this.type = type;
                ErrorCode = axAPI.CommConnect();

                if (ErrorCode != 0)
                {
                    new Error(ErrorCode);
                }

                return;
            }
            Environment.Exit(0);
        }
コード例 #2
0
ファイル: ConnectAPI.cs プロジェクト: w1r2p1/GoblinBat
        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);
        }
コード例 #3
0
ファイル: ConnectAPI.cs プロジェクト: w1r2p1/GoblinBat
        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);
        }