示例#1
0
 public workbench()
 {
     InitializeComponent();
     con = aSQLConnector.getInstance(cfg.ip, cfg.port);
     //dataGridResult.Columns.Add("col2", "col2");
     //resultSet xx = new resultSet("{ok:1,result:[[],[],[]]}", "xx");
 }
示例#2
0
 public static aSQLConnector getInstance(string ipString, int port)
 {
     if (instance == null)
     {
         instance = new aSQLConnector(ipString, port);
     }
     return(instance);
 }
示例#3
0
 private aSQLConnector(string ipString, int port)
 {
     this.ip          = IPAddress.Parse(ipString);
     this.port        = port;
     this.sentRequest = 0;
     status           = STATUS.CLOSE;
     openConnection();
     rcvDta = new Queue <String>();
     //recvDataThread = new Thread(_receive);
     instance = this;
     //recvDataThread.Start();
 }
示例#4
0
 private frmConfirmScript()
 {
     InitializeComponent();
     con = aSQLConnector.getInstance(cfg.ip, cfg.port);
 }
示例#5
0
 public frmConfirmScript(string script)
 {
     InitializeComponent();
     textBox1.Text = script;
     con           = aSQLConnector.getInstance(cfg.ip, cfg.port);
 }