Esempio n. 1
0
        private void Switch_MouseDoubleClick(object sender, MouseButtonEventArgs e)
        {
            SwitchWindow wind = new SwitchWindow();

            wind.Show();


            var thumb = sender as Thumb;

            if (thumb == null)
            {
                return;
            }


            var sw = thumb.DataContext as Switch;

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



            return;
        }
Esempio n. 2
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.viewSwitchWindow = ((_NOC__Network_of_Computers.SwitchWindow)(target));
                return;

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

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

            case 4:

            #line 105 "..\..\SwitchWindow.xaml"
                ((System.Windows.Controls.ListBox)(target)).SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.Vlan_SelectionChanged);

            #line default
            #line hidden
                return;

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

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

            case 7:

            #line 247 "..\..\SwitchWindow.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.Button_Click);

            #line default
            #line hidden
                return;

            case 8:

            #line 249 "..\..\SwitchWindow.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.Button_Click);

            #line default
            #line hidden
                return;

            case 9:
                this.borderContentControl = ((System.Windows.Controls.ContentControl)(target));
                return;
            }
            this._contentLoaded = true;
        }