Ejemplo n.º 1
0
        /// <summary>
        /// Opens a New Category Dialog at the center of the owner, if provided.
        /// </summary>
        /// <param name="owner">Optional. The owner of the dialog, so that it'll be centered.</param>
        public static void OpenNewCategoryDialog(Window owner = null)
        {
            NewCategoryWindow dialog = new NewCategoryWindow();

            if (owner != null)
            {
                dialog.Owner = owner;
            }
            dialog.Show();
        }
Ejemplo n.º 2
0
 void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
 {
     switch (connectionId)
     {
     case 1:
         this.NewCatWindow = ((LocalImageTagger.Views.NewCategoryWindow)(target));
         return;
     }
     this._contentLoaded = true;
 }