private void btnSave_Click(object sender, EventArgs e) { s_Result result = controler.InvSave(Common.ivsPath); MessageBox.Show(result.strResultInfo); if (result.iResultCode == 0) { Close(); } }
private void btnLogin_Click(object sender, EventArgs e) { s_Result result = controler.Login(tbPwd.Text); if (result.iResultCode != 0) { MessageBox.Show(result.strResultInfo); } else { Close(); } }