Click here to Skip to main content
15,894,825 members
Articles / Programming Languages / C#

A Complete TCP Server/Client Communication and RMI Framework - Usage

Rate me:
Please Sign up or sign in to vote.
4.94/5 (102 votes)
12 Jun 2011CPOL22 min read 340.2K   26.1K   247  
An Open Source lightweight framework (named Simple Client Server Library (SCS)) that is delevoped to create Server/Client applications using the simple Remote Method Invocation mechanism.
#pragma checksum "..\..\..\..\Controls\MessagingAreaControl.xaml" "{406ea660-64cf-4c82-b6f0-42d48172a799}" "710A26DE72116E9BB036F3D35C7CE1A9"
//------------------------------------------------------------------------------
// <auto-generated>
//     This code was generated by a tool.
//     Runtime Version:4.0.30319.225
//
//     Changes to this file may cause incorrect behavior and will be lost if
//     the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------

using System;
using System.Diagnostics;
using System.Windows;
using System.Windows.Automation;
using System.Windows.Controls;
using System.Windows.Controls.Primitives;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Markup;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Media.Effects;
using System.Windows.Media.Imaging;
using System.Windows.Media.Media3D;
using System.Windows.Media.TextFormatting;
using System.Windows.Navigation;
using System.Windows.Shapes;
using System.Windows.Shell;


namespace Hik.Samples.Scs.IrcChat.Controls {
    
    
    /// <summary>
    /// MessagingAreaControl
    /// </summary>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("PresentationBuildTasks", "4.0.0.0")]
    public partial class MessagingAreaControl : System.Windows.Controls.UserControl, System.Windows.Markup.IComponentConnector {
        
        
        #line 15 "..\..\..\..\Controls\MessagingAreaControl.xaml"
        [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
        internal System.Windows.Controls.StackPanel spTextStyleChanging;
        
        #line default
        #line hidden
        
        
        #line 16 "..\..\..\..\Controls\MessagingAreaControl.xaml"
        [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
        internal System.Windows.Controls.Label lblTextColor;
        
        #line default
        #line hidden
        
        
        #line 17 "..\..\..\..\Controls\MessagingAreaControl.xaml"
        [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
        internal System.Windows.Controls.Label lblTextBold;
        
        #line default
        #line hidden
        
        
        #line 18 "..\..\..\..\Controls\MessagingAreaControl.xaml"
        [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
        internal System.Windows.Controls.Label lblTextItalic;
        
        #line default
        #line hidden
        
        
        #line 19 "..\..\..\..\Controls\MessagingAreaControl.xaml"
        [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
        internal System.Windows.Controls.ComboBox cmbTextFont;
        
        #line default
        #line hidden
        
        
        #line 26 "..\..\..\..\Controls\MessagingAreaControl.xaml"
        [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
        internal System.Windows.Controls.ComboBox cmbTextSize;
        
        #line default
        #line hidden
        
        
        #line 33 "..\..\..\..\Controls\MessagingAreaControl.xaml"
        [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
        internal System.Windows.Controls.Image imgSoundOnOff;
        
        #line default
        #line hidden
        
        
        #line 35 "..\..\..\..\Controls\MessagingAreaControl.xaml"
        [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
        internal System.Windows.Controls.RichTextBox txtMessageHistory;
        
        #line default
        #line hidden
        
        
        #line 49 "..\..\..\..\Controls\MessagingAreaControl.xaml"
        [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
        internal System.Windows.Controls.RichTextBox txtWriteMessage;
        
        #line default
        #line hidden
        
        
        #line 56 "..\..\..\..\Controls\MessagingAreaControl.xaml"
        [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
        internal System.Windows.Controls.Button btnSendMessage;
        
        #line default
        #line hidden
        
        private bool _contentLoaded;
        
        /// <summary>
        /// InitializeComponent
        /// </summary>
        [System.Diagnostics.DebuggerNonUserCodeAttribute()]
        public void InitializeComponent() {
            if (_contentLoaded) {
                return;
            }
            _contentLoaded = true;
            System.Uri resourceLocater = new System.Uri("/ChatClientApp;component/controls/messagingareacontrol.xaml", System.UriKind.Relative);
            
            #line 1 "..\..\..\..\Controls\MessagingAreaControl.xaml"
            System.Windows.Application.LoadComponent(this, resourceLocater);
            
            #line default
            #line hidden
        }
        
        [System.Diagnostics.DebuggerNonUserCodeAttribute()]
        [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
        [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Design", "CA1033:InterfaceMethodsShouldBeCallableByChildTypes")]
        [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Maintainability", "CA1502:AvoidExcessiveComplexity")]
        [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1800:DoNotCastUnnecessarily")]
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
            switch (connectionId)
            {
            case 1:
            this.spTextStyleChanging = ((System.Windows.Controls.StackPanel)(target));
            return;
            case 2:
            this.lblTextColor = ((System.Windows.Controls.Label)(target));
            
            #line 16 "..\..\..\..\Controls\MessagingAreaControl.xaml"
            this.lblTextColor.MouseLeftButtonUp += new System.Windows.Input.MouseButtonEventHandler(this.lblTextColor_MouseLeftButtonUp);
            
            #line default
            #line hidden
            return;
            case 3:
            this.lblTextBold = ((System.Windows.Controls.Label)(target));
            
            #line 17 "..\..\..\..\Controls\MessagingAreaControl.xaml"
            this.lblTextBold.MouseLeftButtonUp += new System.Windows.Input.MouseButtonEventHandler(this.lblTextBold_MouseLeftButtonUp);
            
            #line default
            #line hidden
            return;
            case 4:
            this.lblTextItalic = ((System.Windows.Controls.Label)(target));
            
            #line 18 "..\..\..\..\Controls\MessagingAreaControl.xaml"
            this.lblTextItalic.MouseLeftButtonUp += new System.Windows.Input.MouseButtonEventHandler(this.lblTextItalic_MouseLeftButtonUp);
            
            #line default
            #line hidden
            return;
            case 5:
            this.cmbTextFont = ((System.Windows.Controls.ComboBox)(target));
            
            #line 19 "..\..\..\..\Controls\MessagingAreaControl.xaml"
            this.cmbTextFont.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.cmbTextFont_SelectionChanged);
            
            #line default
            #line hidden
            return;
            case 6:
            this.cmbTextSize = ((System.Windows.Controls.ComboBox)(target));
            
            #line 26 "..\..\..\..\Controls\MessagingAreaControl.xaml"
            this.cmbTextSize.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.cmbTextSize_SelectionChanged);
            
            #line default
            #line hidden
            return;
            case 7:
            this.imgSoundOnOff = ((System.Windows.Controls.Image)(target));
            
            #line 33 "..\..\..\..\Controls\MessagingAreaControl.xaml"
            this.imgSoundOnOff.MouseLeftButtonUp += new System.Windows.Input.MouseButtonEventHandler(this.imgSoundOnOff_MouseLeftButtonUp);
            
            #line default
            #line hidden
            return;
            case 8:
            this.txtMessageHistory = ((System.Windows.Controls.RichTextBox)(target));
            return;
            case 9:
            this.txtWriteMessage = ((System.Windows.Controls.RichTextBox)(target));
            
            #line 49 "..\..\..\..\Controls\MessagingAreaControl.xaml"
            this.txtWriteMessage.KeyDown += new System.Windows.Input.KeyEventHandler(this.txtWriteMessage_KeyDown);
            
            #line default
            #line hidden
            return;
            case 10:
            this.btnSendMessage = ((System.Windows.Controls.Button)(target));
            
            #line 56 "..\..\..\..\Controls\MessagingAreaControl.xaml"
            this.btnSendMessage.Click += new System.Windows.RoutedEventHandler(this.btnSendMessage_Click);
            
            #line default
            #line hidden
            return;
            }
            this._contentLoaded = true;
        }
    }
}

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Founder Volosoft
Turkey Turkey
I have started programming at 14 years old using Pascal as hobby. Then I interested in web development (HTML, JavaScript, ASP...) before university.

I graduated from Sakarya University Computer Engineering. At university, I learned C++, Visual Basic.NET, C#, ASP.NET and Java. I partly implemented ARP, IP and TCP protocols in Java as my final term project.

Now, I am working on Windows and web based software development mostly using Microsoft technologies in my own company.

My open source projects:

* ABP Framework: https://abp.io
* jTable: http://jtable.org
* Others: https://github.com/hikalkan

My personal web site:

https://halilibrahimkalkan.com

Comments and Discussions