private void FormLogin_Load(object sender, EventArgs e) { //初始化配置 LocalVariable.Init(); //加载登录记忆 this.LoadMemery(); }
private void frmSocketTest_Load(object sender, EventArgs e) { this.labelTicks.Text = this.dateTimePicker1.Value.Ticks.ToString(); ConfigConst.ConfigPath = "testWinForm.exe.config"; //string conn = LocalVariable.GetConnString("HXC", ConfigConst.ConnectionStringWrite); LocalVariable.Init(); this.labelTime.Text = DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss"); this.tbIp.Text = "119.57.151.34"; this.tbPort.Text = "19000"; this.tbFilePort.Text = "19999"; this.tbSendMsg.Text = "111$21$L$L1$1414665362571$testxh$test1234$654321"; ServiceAgent.ReceiveComplated += new ServiceAgent.ReceiveComplate(this.ThreadReceive); ServiceAgent.SendComplated += new ServiceAgent.SendComplate(this.ThreadSend); FileAgent.ReceiveComplated += new FileAgent.ReceiveComplate(this.ThreadReceiveFile); FileAgent.SendComplated += new FileAgent.SendComplate(this.ThreadSendFile); }
private void FormLogin_Load(object sender, EventArgs e) { this.dtDb = new DataTable(); this.dtDb.Columns.Add("DisplayName"); this.dtDb.Columns.Add("Name"); this.dtDb.Columns.Add("Value"); this.dtDb.Columns.Add("Code"); this.dtDb.Columns.Add("Status"); this.uiHandler -= new UiHandler(this.ShowAccData); this.uiHandler += new UiHandler(this.ShowAccData); //初始化Wcf WCFClientProxy.CreatePCClientProxy(); //加载帐套信息 ThreadPool.QueueUserWorkItem(new WaitCallback(this._LoadAccData)); //初始化配置 LocalVariable.Init(); //加载登录记忆 this.LoadMemery(); }