void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.viewComputerWindow = ((_NOC__Network_of_Computers.WindowWithConfigurates)(target));
                return;

            case 2:
                this.listOfSettings = ((System.Windows.Controls.Expander)(target));
                return;

            case 3:
                this.listOfInterfaces = ((System.Windows.Controls.Expander)(target));
                return;

            case 4:
                this.listOrFeed = ((System.Windows.Controls.ListBox)(target));
                return;

            case 5:

            #line 350 "..\..\WindowWithConfigurates.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.PingButton_Click);

            #line default
            #line hidden
                return;
            }
            this._contentLoaded = true;
        }
Ejemplo n.º 2
0
        private void Thumb_MouseDoubleClick(object sender, MouseButtonEventArgs e)
        {
            WindowWithConfigurates wind = new WindowWithConfigurates();

            wind.Show();


            var thumb = sender as Thumb;

            if (thumb == null)
            {
                return;
            }


            //var sw = thumb.DataContext as Switch;

            //if (sw != null)
            //{
            //    wind.DataContext = sw;

            //}



            var pc = thumb.DataContext as Computer;

            if (pc != null)
            {
                wind.DataContext = pc;
                wind.Title       = pc.Name;
            }

            return;
        }