Пример #1
0
        protected void CreateNewDirectoryCommandHandler(object sender, ExecutedRoutedEventArgs args)
        {
            try
            {
                m_controller.CreateNewDirectory(NewDirectoryName);

                DrawerHost drawerHost = ((DrawerHost)Template.FindName(DrawerHostName, this));

                if (drawerHost.IsBottomDrawerOpen)
                {
                    drawerHost.IsBottomDrawerOpen = false;
                }
            }
            catch (Exception exc)
            {
                SnackbarMessageQueue.Enqueue(exc.Message);
            }
        }