public workbench() { InitializeComponent(); con = aSQLConnector.getInstance(cfg.ip, cfg.port); //dataGridResult.Columns.Add("col2", "col2"); //resultSet xx = new resultSet("{ok:1,result:[[],[],[]]}", "xx"); }
public static aSQLConnector getInstance(string ipString, int port) { if (instance == null) { instance = new aSQLConnector(ipString, port); } return(instance); }
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(); }
private frmConfirmScript() { InitializeComponent(); con = aSQLConnector.getInstance(cfg.ip, cfg.port); }
public frmConfirmScript(string script) { InitializeComponent(); textBox1.Text = script; con = aSQLConnector.getInstance(cfg.ip, cfg.port); }