void btnConnection_Click(object sender, RoutedEventArgs e) { if (null != client && client.State == CommunicationState.Opened) { LogonName = CtrlPlatformCommandInfo.GetGlobalVariable(ConstantCollection.GlobalVariable_LogonName).Value; client.LogonAsync(LogonName); } this.btnConnection.IsEnabled = false; this.btnDisConnection.IsEnabled = true; }
public static void Logon(string user) { client.LogonAsync(user); }