Exemple #1
0
        //Helpers are split up to make accessing easier even though there is a lot of repitition, it's not complex or hard to change.

        /// <summary>
        /// Opens a New File 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 OpenNewFileDialog(Window owner = null)
        {
            NewFileWindow dialog = new NewFileWindow();

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