Esempio n. 1
0
        private void button_Copy_Click(object sender, RoutedEventArgs e)
        {
            NewTagWindow tagWindow = new NewTagWindow();

            tagWindow.Owner = this;
            tagWindow.Show();
        }
Esempio n. 2
0
        /// <summary>
        /// Opens a New Tag 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 OpenNewTagDialog(Window owner = null)
        {
            NewTagWindow dialog = new NewTagWindow();

            if (owner != null)
            {
                dialog.Owner = owner;
            }
            dialog.Show();
        }