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

            case 2:
                this.txtBoxTag = ((System.Windows.Controls.TextBox)(target));
                return;

            case 3:
                this.comboBoxCategory = ((System.Windows.Controls.TextBox)(target));
                return;

            case 4:
                this.txtBoxAlias = ((System.Windows.Controls.TextBox)(target));
                return;

            case 5:
                this.txtBoxParent = ((System.Windows.Controls.TextBox)(target));
                return;

            case 6:
                this.txtBoxDesc = ((System.Windows.Controls.TextBox)(target));
                return;
            }
            this._contentLoaded = true;
        }
Пример #2
0
        private void Tag_Button_Click(object sender, RoutedEventArgs e)
        {
            NewTagWindow dialog = new NewTagWindow
            {
                Owner = this //Make this window the owner of the popup, so that it will show in the center.
            };

            dialog.Show();
        }