private void StartLogin() { var objAuthenicate = new AuthenticationApi(_objWs, _objMsg); _objControlBuilder.MessageLabel(EnumMessage.ConnectingToServer, LblMsg); if (objAuthenicate.TokenRequest(txtUsername.Text, txtPassword.Text)) { Hide(); // dim loginData = _objWs var objMdiForm = new MdiMp(_objWs, _objFlex, _objMsg, _objControlBuilder) { LoginInfo = new LoginInfoVm() { Username = txtUsername.Text, LoginDateTime = DateTime.Now, UserId = Convert.ToInt32(_objWs.UserId) } }; objMdiForm.Username = txtUsername.Text; objMdiForm.Show(); } else { _objControlBuilder.MessageLabel(objAuthenicate.ReturnMsg.ReturnMsgEnum, LblMsg); } }