Пример #1
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.ConnectionWindow = ((PointDocuments.ConnectPointWindow)(target));

            #line 8 "..\..\ConnectPointWindow.xaml"
                this.ConnectionWindow.Closing += new System.ComponentModel.CancelEventHandler(this.ConnectionWindow_Closing);

            #line default
            #line hidden
                return;

            case 2:
                this.ConnectedDataGrid = ((System.Windows.Controls.DataGrid)(target));

            #line 19 "..\..\ConnectPointWindow.xaml"
                this.ConnectedDataGrid.PreviewMouseUp += new System.Windows.Input.MouseButtonEventHandler(this.ConnectedDataGrid_Click);

            #line default
            #line hidden

            #line 19 "..\..\ConnectPointWindow.xaml"
                this.ConnectedDataGrid.MouseDown += new System.Windows.Input.MouseButtonEventHandler(this.ConnectedDataGrid_Click);

            #line default
            #line hidden
                return;
            }
            this._contentLoaded = true;
        }
Пример #2
0
        //================================
        private void AddPoints_Click(object sender, RoutedEventArgs e)
        {
            ConnectPointWindow connectPointWindow = new ConnectPointWindow(id);

            connectPointWindow.Closing += ConnectPointWindow_Closing;
            connectPointWindow.Owner    = this;

            connectPointWindow.ShowDialog();
        }