예제 #1
0
 void _exInput_OnReturnPressed(object sender, OnReturnPressedEventArgs e)
 {
     if (e.OutData == "/clear" || e.OutData == "/cls" || e.OutData == "/clr")
     {
         _htmlChatHistory.Clear();
     }
     if (e.OutData.StartsWith("/w"))
     {
         string first  = "q\0´\ninfoSystemslash:/w\0\0\0";
         string second = string.Empty;
         string nick   = e.OutData.Replace("/w", string.Empty);
         if (nick.StartsWith(" "))
         {
             second = "q\0H133Sieben\0Start\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0ÿÿÿÿ\0\0ÿ\0\0	textField";
         }
         else if (nick == string.Empty)
         {
             second = "q\0133Sieben\0Start\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0ÿÿÿÿ\0\0ÿ\0\0	textField";
         }
         _client.Send(first);
         _client.Send(second);
     }
     else
     {
         _client.SendUserInput(_client.ClientUser.SelectedChannel.Name, e.OutData);
     }
 }
        void _client_OnDataReceived(object sender, ClientEventArgs.DataReceivedEventArgs e)
        {
            if (!_securityWatcher.AdminlistIsLoaded)
            {
                if (e.Data[0] == 'u')
                {
                    _client.SendUserInput("/h");
                }
            }

            if (_securityActive)
            {
                _securityWatcher.Parse(e.Data);
            }
        }
예제 #3
0
 void tbxInput_OnReturnPressed(object sender, KDF.Graphics.OnReturnPressedEventArgs e)
 {
     _client.SendUserInput(extendedUserInput.Text);
 }