using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Shapes;

namespace Photoalbum
{
    /// <summary>
    /// Interaction logic for NewFolderDlg.xaml
    /// </summary>
    public partial class NewFolderDlg : Window
    {
        //initializes a new instance of the NewFolderDlg class
        public NewFolderDlg()
        {
            InitializeComponent();
        }

        /// <summary>
        /// gets or sets the name of the folder
        /// </summary>
        public string FolderName { get; set; }

        /// <summary>
        /// handles the Clicked event for the OK button.
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void OKButton_Click(object sender, RoutedEventArgs e)
        {
            DialogResult = true;
            FolderName = textBox.Text;
        }
        /// <summary>
        /// Handles the Cancel event for the Cancel button.
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void CancelButton_Click(object sender, RoutedEventArgs e)
        {
            DialogResult = false;
            Close();
        }
    }
}
