예제 #1
0
 public override void ExecuteCommand(IList <Microsoft.EnterpriseManagement.ConsoleFramework.NavigationModelNodeBase> nodes, Microsoft.EnterpriseManagement.ConsoleFramework.NavigationModelNodeTask task, ICollection <string> parameters)
 {
     try
     {
         var newWindow = new ConnectionsForm();
         newWindow.Show();
     }
     catch (Exception ex)
     {
         System.Windows.MessageBox.Show(DateTime.Now + " : " + "ExecuteCommand Error : " + ex.Message);
     }
 }
예제 #2
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.CableWindow = ((SMCenter.Forms.ConnectionsForm)(target));

            #line 5 "..\..\ConnectionsForm.xaml"
                this.CableWindow.Loaded += new System.Windows.RoutedEventHandler(this.ConnectionsWindow_Loaded);

            #line default
            #line hidden
                return;

            case 2:
                this.LocationsTreeView = ((System.Windows.Controls.TreeView)(target));

            #line 17 "..\..\ConnectionsForm.xaml"
                this.LocationsTreeView.AddHandler(System.Windows.Controls.TreeViewItem.ExpandedEvent, new System.Windows.RoutedEventHandler(this.LocationsTreeView_Expanded));

            #line default
            #line hidden

            #line 17 "..\..\ConnectionsForm.xaml"
                this.LocationsTreeView.SelectedItemChanged += new System.Windows.RoutedPropertyChangedEventHandler <object>(this.LocationsTreeView_SelectedItemChanged);

            #line default
            #line hidden
                return;

            case 3:
                this.NodesTreeView = ((System.Windows.Controls.TreeView)(target));

            #line 18 "..\..\ConnectionsForm.xaml"
                this.NodesTreeView.AddHandler(System.Windows.Controls.TreeViewItem.ExpandedEvent, new System.Windows.RoutedEventHandler(this.NodesTreeView_Expanded));

            #line default
            #line hidden

            #line 18 "..\..\ConnectionsForm.xaml"
                this.NodesTreeView.SelectedItemChanged += new System.Windows.RoutedPropertyChangedEventHandler <object>(this.NodesTreeView_SelectedItemChanged);

            #line default
            #line hidden
                return;

            case 4:
                this.CabelsTreeView = ((System.Windows.Controls.TreeView)(target));

            #line 19 "..\..\ConnectionsForm.xaml"
                this.CabelsTreeView.SelectedItemChanged += new System.Windows.RoutedPropertyChangedEventHandler <object>(this.CabelsTreeView_SelectedItemChanged);

            #line default
            #line hidden

            #line 19 "..\..\ConnectionsForm.xaml"
                this.CabelsTreeView.MouseDoubleClick += new System.Windows.Input.MouseButtonEventHandler(this.CabelsTreeView_MouseDoubleClick);

            #line default
            #line hidden
                return;

            case 5:
                this.Logo = ((System.Windows.Controls.Image)(target));
                return;

            case 6:
                this.lbCancel = ((System.Windows.Controls.Label)(target));

            #line 23 "..\..\ConnectionsForm.xaml"
                this.lbCancel.MouseDown += new System.Windows.Input.MouseButtonEventHandler(this.lbCancel_MouseDown);

            #line default
            #line hidden
                return;

            case 7:
                this.txtTargetObject = ((System.Windows.Controls.TextBox)(target));
                return;

            case 8:
                this.txtLocation = ((System.Windows.Controls.TextBox)(target));
                return;

            case 9:
                this.brd_SCSForm = ((System.Windows.Controls.Border)(target));

            #line 33 "..\..\ConnectionsForm.xaml"
                this.brd_SCSForm.MouseDown += new System.Windows.Input.MouseButtonEventHandler(this.brd_SCSForm_MouseDown);

            #line default
            #line hidden
                return;

            case 10:
                this.CI_Image_SCS = ((System.Windows.Controls.Image)(target));
                return;

            case 11:
                this.CablesButtons = ((System.Windows.Controls.StackPanel)(target));
                return;
            }
            this._contentLoaded = true;
        }