void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.ThisWindow = ((WpfApp1.AddArticleDialogWindow)(target));
                return;

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

            case 3:
                this.AnulujA = ((System.Windows.Controls.Button)(target));

            #line 25 "..\..\AddArticleDialogWindow.xaml"
                this.AnulujA.Click += new System.Windows.RoutedEventHandler(this.Button_Click_Anuluj);

            #line default
            #line hidden
                return;

            case 4:
                this.DodajA = ((System.Windows.Controls.Button)(target));
                return;
            }
            this._contentLoaded = true;
        }
Esempio n. 2
0
        private void Button_Click_Article(object sender, RoutedEventArgs e)
        {
            AddArticleDialogWindow myDialog = new AddArticleDialogWindow();

            CommentButton.IsEnabled          = false;
            myDialog.mainVM                  = this.vm;
            myDialog.vm.SelectedArticle      = this.vm.SelectedArticle;
            myDialog.mainWindowArticleButton = CommentButton;
            myDialog.ShowDialog();
        }