Exemple #1
0
		//======================= Release=========================
		private void btnRelease_Click(object sender, System.EventArgs e)
		{
			if(apiclient!=null)
			{
				apiclient.release();	
				apiclient=null;
			}
			MessageBox.Show ("释放成功", "", 
				MessageBoxButtons.OK, MessageBoxIcon.Asterisk);	
		}
Exemple #2
0
		//======================= Exit ========================
		private void btnExit_Click(object sender, System.EventArgs e)
		{
			if(apiclient!=null)
			{
				apiclient.release();	
				apiclient=null;
			}
			Application.ExitThread();
		}
Exemple #3
0
		//Click 事件发生。。。


		//======================= Init=========================
		private void btnInit_Click(object sender, System.EventArgs e)
		{

			apiclient=new APIClient();

			int con=apiclient.init(this.textIp.Text.Trim(),this.textUsername.Text.Trim(),this.textPassword.Text.Trim(),this.textCode.Text.Trim(),this.txtDB.Text.Trim());
			con=System.Math.Abs(con);

			MessageBox.Show (initvalues[con], "", 
				MessageBoxButtons.OK, MessageBoxIcon.Asterisk);
			

		}