Beispiel #1
0
        public override void WriteXML(XElement ele, ElderScrollsPlugin master)
        {
            XElement subEle;

            if (IdleTime != null)
            {
                ele.TryPathTo("IdleTime", true, out subEle);
                IdleTime.WriteXML(subEle, master);
            }
            if (ScriptMarker != null)
            {
                ele.TryPathTo("ScriptMarker", true, out subEle);
                ScriptMarker.WriteXML(subEle, master);
            }
            if (Idle != null)
            {
                ele.TryPathTo("Idle", true, out subEle);
                Idle.WriteXML(subEle, master);
            }
            if (Script != null)
            {
                ele.TryPathTo("Script", true, out subEle);
                Script.WriteXML(subEle, master);
            }
            if (Topic != null)
            {
                ele.TryPathTo("Topic", true, out subEle);
                Topic.WriteXML(subEle, master);
            }
        }
Beispiel #2
0
 public static void DoIdle(int ms)
 {
     UIThreadHelper.Instance.Invoke(() => {
         int time = 0;
         while (time < ms)
         {
             IdleTime.DoIdle();
             Thread.Sleep(20);
             time += 20;
         }
     });
 }
Beispiel #3
0
        private void jc_OnIQ(object sender, IQ iq)
        {
            if (iq.Type != IQType.get)
            {
                return;
            }

            XmlElement query = iq.Query;

            if (query == null)
            {
                return;
            }

            // <iq id="jcl_8" to="me" from="you" type="get"><query xmlns="jabber:iq:version"/></iq>
            if (query is Jabber.Protocol.IQ.Version)
            {
                iq = iq.GetResponse(jc.Document);
                Jabber.Protocol.IQ.Version ver = iq.Query as Jabber.Protocol.IQ.Version;
                if (ver != null)
                {
                    ver.OS         = Environment.OSVersion.ToString();
                    ver.EntityName = Application.ProductName;
                    ver.Ver        = Application.ProductVersion;
                }
                jc.Write(iq);
                return;
            }

            if (query is Time)
            {
                iq = iq.GetResponse(jc.Document);
                Time tim = iq.Query as Time;
                if (tim != null)
                {
                    tim.SetCurrentTime();
                }
                jc.Write(iq);
                return;
            }

            if (query is Last)
            {
                iq = iq.GetResponse(jc.Document);
                Last last = iq.Query as Last;
                if (last != null)
                {
                    last.Seconds = (int)IdleTime.GetIdleTime();
                }
                jc.Write(iq);
                return;
            }
        }
Beispiel #4
0
        public override void ReadXML(XElement ele, ElderScrollsPlugin master)
        {
            XElement subEle;

            if (ele.TryPathTo("IdleTime", false, out subEle))
            {
                if (IdleTime == null)
                {
                    IdleTime = new SimpleSubrecord <Single>();
                }

                IdleTime.ReadXML(subEle, master);
            }
            if (ele.TryPathTo("ScriptMarker", false, out subEle))
            {
                if (ScriptMarker == null)
                {
                    ScriptMarker = new SubMarker();
                }

                ScriptMarker.ReadXML(subEle, master);
            }
            if (ele.TryPathTo("Idle", false, out subEle))
            {
                if (Idle == null)
                {
                    Idle = new RecordReference();
                }

                Idle.ReadXML(subEle, master);
            }
            if (ele.TryPathTo("Script", false, out subEle))
            {
                if (Script == null)
                {
                    Script = new EmbeddedScript();
                }

                Script.ReadXML(subEle, master);
            }
            if (ele.TryPathTo("Topic", false, out subEle))
            {
                if (Topic == null)
                {
                    Topic = new RecordReference();
                }

                Topic.ReadXML(subEle, master);
            }
        }
Beispiel #5
0
        public MainWindow()
        {
            InitializeComponent();
            _server   = new SignalRServer();
            _idleTime = new IdleTime();

            Task.Run(() => StartServer());
            var dispatcherTimer = new DispatcherTimer {
                Interval = new TimeSpan(0, 0, 1)
            };

            dispatcherTimer.Tick += DispatcherTimer_Tick;
            dispatcherTimer.Start();
        }
Beispiel #6
0
    // Start is called before the first frame update
    void Start()
    {
        tower           = gameObject.GetComponentInParent <Tower>();
        monster         = gameObject.GetComponentInParent <Monster>();
        monsterAnimator = gameObject.GetComponent <Animator>();
        idleTime        = monsterAnimator.GetBehaviour <IdleTime>();



        monsterAnimator.speed = 1 * ((float)monster.info.speBase / 75);
        animatorSpeed         = monsterAnimator.speed;
        dexId = monster.info.dexId;
        monsterAnimator.SetFloat("attackSpeed", animatorSpeed);
        monsterAnimator.SetInteger("dexID", dexId);
    }
Beispiel #7
0
        public QUser(string line, string columnsString)
        {
            UserName    = line.Substring(columnsString.IndexOf("USERNAME"), columnsString.IndexOf("SESSIONNAME") - 1);
            SessionName = line.Substring(columnsString.IndexOf("SESSIONNAME"), columnsString.IndexOf("ID") - columnsString.IndexOf("SESSIONNAME") - 1);
            Id          = line.Substring(columnsString.IndexOf("ID"), columnsString.IndexOf("STATE") - columnsString.IndexOf("ID") - 1);
            State       = line.Substring(columnsString.IndexOf("STATE"), columnsString.IndexOf("IDLE TIME") - columnsString.IndexOf("STATE") - 1);
            IdleTime    = line.Substring(columnsString.IndexOf("IDLE TIME"), columnsString.IndexOf("LOGON TIME") - columnsString.IndexOf("IDLE TIME") - 1);
            LogonTime   = line.Substring(columnsString.IndexOf("LOGON TIME"), line.Length - columnsString.IndexOf("LOGON TIME"));

            UserName    = UserName.Trim();
            SessionName = SessionName.Trim();
            Id          = Id.Trim();
            State       = State.Trim().ToUpper().Equals("DISC") ? "Disconnected" : State.Trim();
            IdleTime    = IdleTime.Trim();
            LogonTime   = LogonTime.Trim();
        }
Beispiel #8
0
 public override void WriteBinary(ESPWriter writer)
 {
     if (IdleTime != null)
     {
         IdleTime.WriteBinary(writer);
     }
     if (ScriptMarker != null)
     {
         ScriptMarker.WriteBinary(writer);
     }
     if (Idle != null)
     {
         Idle.WriteBinary(writer);
     }
     if (Script != null)
     {
         Script.WriteBinary(writer);
     }
     if (Topic != null)
     {
         Topic.WriteBinary(writer);
     }
 }
Beispiel #9
0
        public override void ReadBinary(ESPReader reader)
        {
            List <string> readTags = new List <string>();

            while (reader.BaseStream.Position < reader.BaseStream.Length)
            {
                string subTag = reader.PeekTag();

                switch (subTag)
                {
                case "XPRD":
                    if (readTags.Contains("XPRD"))
                    {
                        return;
                    }
                    IdleTime.ReadBinary(reader);
                    break;

                case "XPPA":
                    if (readTags.Contains("XPPA"))
                    {
                        return;
                    }
                    if (ScriptMarker == null)
                    {
                        ScriptMarker = new SubMarker();
                    }

                    ScriptMarker.ReadBinary(reader);
                    break;

                case "INAM":
                    if (readTags.Contains("INAM"))
                    {
                        return;
                    }
                    if (Idle == null)
                    {
                        Idle = new RecordReference();
                    }

                    Idle.ReadBinary(reader);
                    break;

                case "SCHR":
                    if (readTags.Contains("SCHR"))
                    {
                        return;
                    }
                    if (Script == null)
                    {
                        Script = new EmbeddedScript();
                    }

                    Script.ReadBinary(reader);
                    break;

                case "TNAM":
                    if (readTags.Contains("TNAM"))
                    {
                        return;
                    }
                    if (Topic == null)
                    {
                        Topic = new RecordReference();
                    }

                    Topic.ReadBinary(reader);
                    break;

                default:
                    return;
                }

                readTags.Add(subTag);
            }
        }
Beispiel #10
0
        /// <summary>
        /// Check the system is available
        /// Get any system messages
        /// Check the timeout hasn't occurred.
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void Demon_Tick(object sender, EventArgs e)
        {
            Demon.Enabled = false;

            // Terminate the application if system is not available.
            if (!Exit)
                Exit = !CheckSystemAvailability();

            // Check for idle timeout.
            if (!Exit)
            {
                var idleTime = new IdleTime();
                if (!System.Diagnostics.Debugger.IsAttached && idleTime.Seconds() > Properties.Settings.Default.IdleTimeout)
                    Exit = true;
            }

            // Build and display a list of system messages
            if (!Exit)
                ShowSystemMessages();

            // Say bye bye?
            if (Exit)
            {
                // bit of a cludge, must reset any 'IsDirty/FormState' properties to false/0 for any open form that has this property
                // to prevent the user being prompted to save any changes.
                foreach (Form frm in Application.OpenForms)
                {
                    var pi = frm.GetType().GetProperty("IsDirty");
                    if (pi != null && pi.CanWrite)
                        pi.SetValue(frm, false, null);

                    pi = frm.GetType().GetProperty("FormState");
                    if (pi != null && pi.CanWrite)
                        pi.SetValue(frm, 0, null);

                    FormUtils.AddTag(frm, "ForceClose");
                }
                Application.DoEvents();
                Thread.Sleep(5000);
                this.Close();
            }
            else
                Demon.Enabled = true;
        }
Beispiel #11
0
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     this.components = new System.ComponentModel.Container();
     jabber.connection.Ident ident1 = new jabber.connection.Ident();
     System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(MainForm));
     this.sb          = new System.Windows.Forms.StatusBar();
     this.pnlCon      = new System.Windows.Forms.StatusBarPanel();
     this.pnlSSL      = new System.Windows.Forms.StatusBarPanel();
     this.pnlPresence = new System.Windows.Forms.StatusBarPanel();
     this.tabControl1 = new System.Windows.Forms.TabControl();
     this.tpRoster    = new System.Windows.Forms.TabPage();
     this.roster      = new muzzle.RosterTree();
     this.jc          = new jabber.client.JabberClient(this.components);
     this.pm          = new jabber.client.PresenceManager(this.components);
     this.rm          = new jabber.client.RosterManager(this.components);
     this.tpServices  = new System.Windows.Forms.TabPage();
     //  this.services = new Example.ServiceDisplay();
     this.dm                               = new jabber.connection.DiscoManager(this.components);
     this.tpDebug                          = new System.Windows.Forms.TabPage();
     this.debug                            = new muzzle.XmppDebugger();
     this.mnuPresence                      = new System.Windows.Forms.ContextMenu();
     this.mnuAvailable                     = new System.Windows.Forms.MenuItem();
     this.mnuAway                          = new System.Windows.Forms.MenuItem();
     this.menuStrip1                       = new System.Windows.Forms.MenuStrip();
     this.fileToolStripMenuItem            = new System.Windows.Forms.ToolStripMenuItem();
     this.connectToolStripMenuItem         = new System.Windows.Forms.ToolStripMenuItem();
     this.joinConferenceToolStripMenuItem  = new System.Windows.Forms.ToolStripMenuItem();
     this.toolStripMenuItem1               = new System.Windows.Forms.ToolStripSeparator();
     this.exitToolStripMenuItem            = new System.Windows.Forms.ToolStripMenuItem();
     this.viewToolStripMenuItem            = new System.Windows.Forms.ToolStripMenuItem();
     this.servicesToolStripMenuItem        = new System.Windows.Forms.ToolStripMenuItem();
     this.debugToolStripMenuItem           = new System.Windows.Forms.ToolStripMenuItem();
     this.rosterToolStripMenuItem          = new System.Windows.Forms.ToolStripMenuItem();
     this.addContactToolStripMenuItem      = new System.Windows.Forms.ToolStripMenuItem();
     this.removeContactToolStripMenuItem   = new System.Windows.Forms.ToolStripMenuItem();
     this.addGroupToolStripMenuItem        = new System.Windows.Forms.ToolStripMenuItem();
     this.windowToolStripMenuItem          = new System.Windows.Forms.ToolStripMenuItem();
     this.closeTabToolStripMenuItem        = new System.Windows.Forms.ToolStripMenuItem();
     this.pubSubToolStripMenuItem          = new System.Windows.Forms.ToolStripMenuItem();
     this.subscribePubSubToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
     this.deletePubSubToolStripMenuItem    = new System.Windows.Forms.ToolStripMenuItem();
     this.cm                               = new jabber.connection.CapsManager(this.components);
     this.psm                              = new jabber.connection.PubSubManager(this.components);
     this.idler                            = new bedrock.util.IdleTime();
     this.muc                              = new jabber.connection.ConferenceManager(this.components);
     ((System.ComponentModel.ISupportInitialize)(this.pnlCon)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.pnlSSL)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.pnlPresence)).BeginInit();
     this.tabControl1.SuspendLayout();
     this.tpRoster.SuspendLayout();
     this.tpServices.SuspendLayout();
     this.tpDebug.SuspendLayout();
     this.menuStrip1.SuspendLayout();
     this.SuspendLayout();
     //
     // sb
     //
     this.sb.Location = new System.Drawing.Point(0, 416);
     this.sb.Name     = "sb";
     this.sb.Panels.AddRange(new System.Windows.Forms.StatusBarPanel[] {
         this.pnlCon,
         this.pnlSSL,
         this.pnlPresence
     });
     this.sb.ShowPanels  = true;
     this.sb.Size        = new System.Drawing.Size(632, 22);
     this.sb.TabIndex    = 0;
     this.sb.PanelClick += new System.Windows.Forms.StatusBarPanelClickEventHandler(this.sb_PanelClick);
     //
     // pnlCon
     //
     this.pnlCon.AutoSize = System.Windows.Forms.StatusBarPanelAutoSize.Spring;
     this.pnlCon.Name     = "pnlCon";
     this.pnlCon.Text     = "Click on \"Offline\", and select a presence to log in.";
     this.pnlCon.Width    = 538;
     //
     // pnlSSL
     //
     this.pnlSSL.Alignment = System.Windows.Forms.HorizontalAlignment.Center;
     this.pnlSSL.Name      = "pnlSSL";
     this.pnlSSL.Width     = 30;
     //
     // pnlPresence
     //
     this.pnlPresence.Alignment = System.Windows.Forms.HorizontalAlignment.Right;
     this.pnlPresence.AutoSize  = System.Windows.Forms.StatusBarPanelAutoSize.Contents;
     this.pnlPresence.Name      = "pnlPresence";
     this.pnlPresence.Text      = "Offline";
     this.pnlPresence.Width     = 47;
     //
     // tabControl1
     //
     this.tabControl1.Controls.Add(this.tpRoster);
     this.tabControl1.Controls.Add(this.tpServices);
     this.tabControl1.Controls.Add(this.tpDebug);
     this.tabControl1.Dock          = System.Windows.Forms.DockStyle.Fill;
     this.tabControl1.Location      = new System.Drawing.Point(0, 24);
     this.tabControl1.Name          = "tabControl1";
     this.tabControl1.SelectedIndex = 0;
     this.tabControl1.Size          = new System.Drawing.Size(632, 392);
     this.tabControl1.TabIndex      = 2;
     //
     // tpRoster
     //
     this.tpRoster.Controls.Add(this.roster);
     this.tpRoster.Location = new System.Drawing.Point(4, 22);
     this.tpRoster.Name     = "tpRoster";
     this.tpRoster.Size     = new System.Drawing.Size(624, 366);
     this.tpRoster.TabIndex = 1;
     this.tpRoster.Text     = "Roster";
     this.tpRoster.UseVisualStyleBackColor = true;
     //
     // roster
     //
     this.roster.AllowDrop          = true;
     this.roster.Client             = this.jc;
     this.roster.Dock               = System.Windows.Forms.DockStyle.Fill;
     this.roster.DrawMode           = System.Windows.Forms.TreeViewDrawMode.OwnerDrawText;
     this.roster.ImageIndex         = 1;
     this.roster.Location           = new System.Drawing.Point(0, 0);
     this.roster.Name               = "roster";
     this.roster.PresenceManager    = this.pm;
     this.roster.RosterManager      = this.rm;
     this.roster.SelectedImageIndex = 0;
     this.roster.ShowLines          = false;
     this.roster.ShowRootLines      = false;
     this.roster.Size               = new System.Drawing.Size(624, 366);
     this.roster.Sorted             = true;
     this.roster.StatusColor        = System.Drawing.Color.Teal;
     this.roster.TabIndex           = 0;
     this.roster.DoubleClick       += new System.EventHandler(this.roster_DoubleClick);
     //
     // jc
     //
     this.jc.AutoReconnect        = 3F;
     this.jc.AutoStartCompression = true;
     this.jc.AutoStartTLS         = true;
     this.jc.InvokeControl        = this;
     this.jc.KeepAlive            = 30F;
     this.jc.LocalCertificate     = null;
     this.jc.Password             = null;
     this.jc.User            = null;
     this.jc.OnRegisterInfo += new jabber.client.RegisterInfoHandler(this.jc_OnRegisterInfo);
     this.jc.OnError        += new bedrock.ExceptionHandler(this.jc_OnError);
     this.jc.OnIQ           += new jabber.client.IQHandler(this.jc_OnIQ);
     this.jc.OnAuthenticate += new bedrock.ObjectHandler(this.jc_OnAuthenticate);
     this.jc.OnStreamError  += new jabber.protocol.ProtocolHandler(this.jc_OnStreamError);
     this.jc.OnConnect      += new jabber.connection.StanzaStreamHandler(this.jc_OnConnect);
     this.jc.OnDisconnect   += new bedrock.ObjectHandler(this.jc_OnDisconnect);
     this.jc.OnAuthError    += new jabber.protocol.ProtocolHandler(this.jc_OnAuthError);
     this.jc.OnRegistered   += new jabber.client.IQHandler(this.jc_OnRegistered);
     this.jc.OnMessage      += new jabber.client.MessageHandler(this.jc_OnMessage);
     //
     // pm
     //
     this.pm.Stream = this.jc;
     //
     // rm
     //
     this.rm.AutoAllow         = jabber.client.AutoSubscriptionHanding.AllowIfSubscribed;
     this.rm.AutoSubscribe     = true;
     this.rm.Stream            = this.jc;
     this.rm.OnRosterEnd      += new bedrock.ObjectHandler(this.rm_OnRosterEnd);
     this.rm.OnSubscription   += new jabber.client.SubscriptionHandler(this.rm_OnSubscription);
     this.rm.OnUnsubscription += new jabber.client.UnsubscriptionHandler(this.rm_OnUnsubscription);
     //
     // tpServices
     //
     //this.tpServices.Controls.Add(this.services);
     //this.tpServices.Location = new System.Drawing.Point(4, 22);
     //this.tpServices.Name = "tpServices";
     //this.tpServices.Size = new System.Drawing.Size(624, 366);
     //this.tpServices.TabIndex = 2;
     //this.tpServices.Text = "Services";
     //this.tpServices.UseVisualStyleBackColor = true;
     //
     // services
     //
     //this.services.DiscoManager = this.dm;
     //this.services.Dock = System.Windows.Forms.DockStyle.Fill;
     //this.services.ImageList = null;
     //this.services.Location = new System.Drawing.Point(0, 0);
     //this.services.Name = "services";
     //this.services.Size = new System.Drawing.Size(624, 366);
     //this.services.Stream = this.jc;
     //this.services.TabIndex = 0;
     //
     // dm
     //
     this.dm.Stream = this.jc;
     //
     // tpDebug
     //
     this.tpDebug.Controls.Add(this.debug);
     this.tpDebug.Location = new System.Drawing.Point(4, 22);
     this.tpDebug.Name     = "tpDebug";
     this.tpDebug.Size     = new System.Drawing.Size(624, 366);
     this.tpDebug.TabIndex = 0;
     this.tpDebug.Text     = "Debug";
     this.tpDebug.UseVisualStyleBackColor = true;
     //
     // debug
     //
     this.debug.Dock         = System.Windows.Forms.DockStyle.Fill;
     this.debug.ErrorColor   = System.Drawing.Color.Red;
     this.debug.Location     = new System.Drawing.Point(0, 0);
     this.debug.Name         = "debug";
     this.debug.OtherColor   = System.Drawing.Color.Green;
     this.debug.ReceiveColor = System.Drawing.Color.Orange;
     this.debug.SendColor    = System.Drawing.Color.Blue;
     this.debug.Size         = new System.Drawing.Size(624, 366);
     this.debug.Stream       = this.jc;
     this.debug.TabIndex     = 0;
     this.debug.TextColor    = System.Drawing.Color.Black;
     //
     // mnuPresence
     //
     this.mnuPresence.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
         this.mnuAvailable,
         this.mnuAway
     });
     //
     // mnuAvailable
     //
     this.mnuAvailable.Enabled  = false;
     this.mnuAvailable.Index    = 0;
     this.mnuAvailable.Shortcut = System.Windows.Forms.Shortcut.CtrlO;
     this.mnuAvailable.Text     = "&Available";
     this.mnuAvailable.Click   += new System.EventHandler(this.mnuAvailable_Click);
     //
     // mnuAway
     //
     this.mnuAway.Enabled  = false;
     this.mnuAway.Index    = 1;
     this.mnuAway.Shortcut = System.Windows.Forms.Shortcut.CtrlA;
     this.mnuAway.Text     = "A&way";
     this.mnuAway.Click   += new System.EventHandler(this.mnuAway_Click);
     //
     // menuStrip1
     //
     this.menuStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
         this.fileToolStripMenuItem,
         this.viewToolStripMenuItem,
         this.rosterToolStripMenuItem,
         this.windowToolStripMenuItem,
         this.pubSubToolStripMenuItem
     });
     this.menuStrip1.Location = new System.Drawing.Point(0, 0);
     this.menuStrip1.Name     = "menuStrip1";
     this.menuStrip1.Size     = new System.Drawing.Size(632, 24);
     this.menuStrip1.TabIndex = 3;
     this.menuStrip1.Text     = "menuStrip1";
     //
     // fileToolStripMenuItem
     //
     this.fileToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
         this.connectToolStripMenuItem,
         this.joinConferenceToolStripMenuItem,
         this.toolStripMenuItem1,
         this.exitToolStripMenuItem
     });
     this.fileToolStripMenuItem.Name = "fileToolStripMenuItem";
     this.fileToolStripMenuItem.Size = new System.Drawing.Size(35, 20);
     this.fileToolStripMenuItem.Text = "&File";
     //
     // connectToolStripMenuItem
     //
     this.connectToolStripMenuItem.Name         = "connectToolStripMenuItem";
     this.connectToolStripMenuItem.ShortcutKeys = System.Windows.Forms.Keys.F9;
     this.connectToolStripMenuItem.Size         = new System.Drawing.Size(200, 22);
     this.connectToolStripMenuItem.Text         = "&Connect";
     this.connectToolStripMenuItem.Click       += new System.EventHandler(this.connectToolStripMenuItem_Click);
     //
     // joinConferenceToolStripMenuItem
     //
     this.joinConferenceToolStripMenuItem.Name         = "joinConferenceToolStripMenuItem";
     this.joinConferenceToolStripMenuItem.ShortcutKeys = ((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.J)));
     this.joinConferenceToolStripMenuItem.Size         = new System.Drawing.Size(200, 22);
     this.joinConferenceToolStripMenuItem.Text         = "&Join Conference";
     this.joinConferenceToolStripMenuItem.Click       += new System.EventHandler(this.joinConferenceToolStripMenuItem_Click);
     //
     // toolStripMenuItem1
     //
     this.toolStripMenuItem1.Name = "toolStripMenuItem1";
     this.toolStripMenuItem1.Size = new System.Drawing.Size(197, 6);
     //
     // exitToolStripMenuItem
     //
     this.exitToolStripMenuItem.Name         = "exitToolStripMenuItem";
     this.exitToolStripMenuItem.ShortcutKeys = ((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.Q)));
     this.exitToolStripMenuItem.Size         = new System.Drawing.Size(200, 22);
     this.exitToolStripMenuItem.Text         = "E&xit";
     this.exitToolStripMenuItem.Click       += new System.EventHandler(this.exitToolStripMenuItem_Click);
     //
     // viewToolStripMenuItem
     //
     this.viewToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
         this.servicesToolStripMenuItem,
         this.debugToolStripMenuItem
     });
     this.viewToolStripMenuItem.Name = "viewToolStripMenuItem";
     this.viewToolStripMenuItem.Size = new System.Drawing.Size(41, 20);
     this.viewToolStripMenuItem.Text = "&View";
     //
     // servicesToolStripMenuItem
     //
     this.servicesToolStripMenuItem.Name         = "servicesToolStripMenuItem";
     this.servicesToolStripMenuItem.ShortcutKeys = System.Windows.Forms.Keys.F8;
     this.servicesToolStripMenuItem.Size         = new System.Drawing.Size(144, 22);
     this.servicesToolStripMenuItem.Text         = "&Services";
     this.servicesToolStripMenuItem.Click       += new System.EventHandler(this.servicesToolStripMenuItem_Click);
     //
     // debugToolStripMenuItem
     //
     this.debugToolStripMenuItem.Name         = "debugToolStripMenuItem";
     this.debugToolStripMenuItem.ShortcutKeys = System.Windows.Forms.Keys.F12;
     this.debugToolStripMenuItem.Size         = new System.Drawing.Size(144, 22);
     this.debugToolStripMenuItem.Text         = "&Debug";
     this.debugToolStripMenuItem.Click       += new System.EventHandler(this.debugToolStripMenuItem_Click);
     //
     // rosterToolStripMenuItem
     //
     this.rosterToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
         this.addContactToolStripMenuItem,
         this.removeContactToolStripMenuItem,
         this.addGroupToolStripMenuItem
     });
     this.rosterToolStripMenuItem.Name = "rosterToolStripMenuItem";
     this.rosterToolStripMenuItem.Size = new System.Drawing.Size(51, 20);
     this.rosterToolStripMenuItem.Text = "&Roster";
     //
     // addContactToolStripMenuItem
     //
     this.addContactToolStripMenuItem.Name         = "addContactToolStripMenuItem";
     this.addContactToolStripMenuItem.ShortcutKeys = System.Windows.Forms.Keys.Insert;
     this.addContactToolStripMenuItem.Size         = new System.Drawing.Size(187, 22);
     this.addContactToolStripMenuItem.Text         = "&Add Contact";
     this.addContactToolStripMenuItem.Click       += new System.EventHandler(this.menuItem3_Click);
     //
     // removeContactToolStripMenuItem
     //
     this.removeContactToolStripMenuItem.Name         = "removeContactToolStripMenuItem";
     this.removeContactToolStripMenuItem.ShortcutKeys = System.Windows.Forms.Keys.Delete;
     this.removeContactToolStripMenuItem.Size         = new System.Drawing.Size(187, 22);
     this.removeContactToolStripMenuItem.Text         = "&Remove Contact";
     this.removeContactToolStripMenuItem.Click       += new System.EventHandler(this.menuItem5_Click);
     //
     // addGroupToolStripMenuItem
     //
     this.addGroupToolStripMenuItem.Name         = "addGroupToolStripMenuItem";
     this.addGroupToolStripMenuItem.ShortcutKeys = ((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.G)));
     this.addGroupToolStripMenuItem.Size         = new System.Drawing.Size(187, 22);
     this.addGroupToolStripMenuItem.Text         = "&Add Group";
     this.addGroupToolStripMenuItem.Click       += new System.EventHandler(this.addGroupToolStripMenuItem_Click);
     //
     // windowToolStripMenuItem
     //
     this.windowToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
         this.closeTabToolStripMenuItem
     });
     this.windowToolStripMenuItem.Name = "windowToolStripMenuItem";
     this.windowToolStripMenuItem.Size = new System.Drawing.Size(57, 20);
     this.windowToolStripMenuItem.Text = "&Window";
     //
     // closeTabToolStripMenuItem
     //
     this.closeTabToolStripMenuItem.Name         = "closeTabToolStripMenuItem";
     this.closeTabToolStripMenuItem.ShortcutKeys = ((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.W)));
     this.closeTabToolStripMenuItem.Size         = new System.Drawing.Size(174, 22);
     this.closeTabToolStripMenuItem.Text         = "&Close Tab";
     this.closeTabToolStripMenuItem.Click       += new System.EventHandler(this.closeTabToolStripMenuItem_Click);
     //
     // pubSubToolStripMenuItem
     //
     this.pubSubToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
         this.subscribePubSubToolStripMenuItem,
         this.deletePubSubToolStripMenuItem
     });
     this.pubSubToolStripMenuItem.Name = "pubSubToolStripMenuItem";
     this.pubSubToolStripMenuItem.Size = new System.Drawing.Size(55, 20);
     this.pubSubToolStripMenuItem.Text = "PubSub";
     //
     // subscribePubSubToolStripMenuItem
     //
     this.subscribePubSubToolStripMenuItem.Name         = "subscribePubSubToolStripMenuItem";
     this.subscribePubSubToolStripMenuItem.ShortcutKeys = System.Windows.Forms.Keys.F10;
     this.subscribePubSubToolStripMenuItem.Size         = new System.Drawing.Size(156, 22);
     this.subscribePubSubToolStripMenuItem.Text         = "&Subscribe";
     this.subscribePubSubToolStripMenuItem.Click       += new System.EventHandler(this.subscribeToPubSubToolStripMenuItem_Click);
     //
     // deletePubSubToolStripMenuItem
     //
     this.deletePubSubToolStripMenuItem.Name         = "deletePubSubToolStripMenuItem";
     this.deletePubSubToolStripMenuItem.ShortcutKeys = System.Windows.Forms.Keys.F11;
     this.deletePubSubToolStripMenuItem.Size         = new System.Drawing.Size(156, 22);
     this.deletePubSubToolStripMenuItem.Text         = "&Delete";
     this.deletePubSubToolStripMenuItem.Click       += new System.EventHandler(this.deletePubSubToolStripMenuItem_Click);
     //
     // cm
     //
     this.cm.DiscoManager = this.dm;
     this.cm.Features     = new string[0];
     this.cm.FileName     = "caps.xml";
     ident1.Category      = "client";
     ident1.Lang          = "en";
     ident1.Name          = "Jabber-Net Test Client";
     ident1.Type          = "pc";
     this.cm.Identities   = new jabber.connection.Ident[] {
         ident1
     };
     this.cm.Node   = "http://cursive.net/clients/csharp-example";
     this.cm.Stream = this.jc;
     //
     // psm
     //
     this.psm.Stream = this.jc;
     //
     // idler
     //
     this.idler.InvokeControl = this;
     this.idler.OnIdle       += new bedrock.util.SpanEventHandler(this.idler_OnIdle);
     this.idler.OnUnIdle     += new bedrock.util.SpanEventHandler(this.idler_OnUnIdle);
     //
     // muc
     //
     this.muc.Stream           = this.jc;
     this.muc.OnRoomConfig    += new jabber.connection.ConfigureRoom(this.muc_OnRoomConfig);
     this.muc.OnInvite        += new jabber.client.MessageHandler(this.muc_OnInvite);
     this.muc.OnPresenceError += new jabber.connection.RoomPresenceHandler(this.muc_OnPresenceError);
     //
     // MainForm
     //
     this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
     this.ClientSize        = new System.Drawing.Size(632, 438);
     this.ContextMenu       = this.mnuPresence;
     this.Controls.Add(this.tabControl1);
     this.Controls.Add(this.sb);
     this.Controls.Add(this.menuStrip1);
     this.Icon          = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
     this.MainMenuStrip = this.menuStrip1;
     this.Name          = "MainForm";
     this.Text          = "MainForm";
     this.Closing      += new System.ComponentModel.CancelEventHandler(this.MainForm_Closing);
     ((System.ComponentModel.ISupportInitialize)(this.pnlCon)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.pnlSSL)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.pnlPresence)).EndInit();
     this.tabControl1.ResumeLayout(false);
     this.tpRoster.ResumeLayout(false);
     this.tpServices.ResumeLayout(false);
     this.tpDebug.ResumeLayout(false);
     this.menuStrip1.ResumeLayout(false);
     this.menuStrip1.PerformLayout();
     this.ResumeLayout(false);
     this.PerformLayout();
 }