Beispiel #1
0
        public MainWindow()
        {
            Wm = this;
            IsConnected = false;
            Width = SystemParameters.PrimaryScreenWidth - 400;
            Height = SystemParameters.PrimaryScreenHeight - 200;
            Username = "******";

            InitializeComponent();
            //Closed += (e, o) => TcpClient.Client.Close();
        }
Beispiel #2
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.RemisChat = ((Chat.MainWindow)(target));
                return;

            case 2:
                this.LabelIP = ((System.Windows.Controls.Label)(target));
                return;

            case 3:
                this.IpAdressInput = ((System.Windows.Controls.TextBox)(target));
                return;

            case 4:
                this.ConnectButton = ((System.Windows.Controls.Button)(target));

            #line 22 "..\..\MainWindow.xaml"
                this.ConnectButton.Click += new System.Windows.RoutedEventHandler(this.ConnectButton_Click);

            #line default
            #line hidden
                return;

            case 5:
                this.ChatText = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 6:
                this.MessageInput = ((System.Windows.Controls.TextBox)(target));
                return;

            case 7:
                this.SendButton = ((System.Windows.Controls.Button)(target));

            #line 29 "..\..\MainWindow.xaml"
                this.SendButton.Click += new System.Windows.RoutedEventHandler(this.SendButton_Click);

            #line default
            #line hidden
                return;
            }
            this._contentLoaded = true;
        }