Пример #1
0
        /// <summary>
        /// Action listener that will begin the work flow to start creating a folder tile. This will bring up a keyboard for
        /// the user to name their folder. Once that keyboard closes, the typed string will be returned and passed into the
        /// CreateFolder method
        /// </summary>
        /// <param name="sender">Button used to initiate this process</param>
        /// <param name="e"></param>
        private void InsertFolderTile_Click(object sender, RoutedEventArgs e)
        {
            KeyboardPopup board      = new KeyboardPopup();
            string        folderName = board.GetUserInput();

            CreateFolder(folderName);
        }
Пример #2
0
        /// <summary>
        /// Action Listener that will begin the work flow to start creating a folder tile. This will bring up a keyboard for the user
        /// to name the tile they want to create. Once that keyboard closes, an ImageGenerator will popup that will allow the user
        /// to select an image for the tile. Will then make use of the CreateTile method once that data has been collected.
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void InsertTalkerTile_Click(object sender, RoutedEventArgs e)
        {
            KeyboardPopup board    = new KeyboardPopup();
            string        tileName = board.GetUserInput();

            if (tileName != "")
            {
                string path = ImageGenerator.ImagePopup();
                CreateTile(path, tileName);
            }
        }