Пример #1
0
        private void Window_Loaded(object sender, RoutedEventArgs e)
        {
            BuildRecentSubMenu();
            MateriaInputManager.Init();
            RegisterInputActions();

            popupShelf       = new UIPopupShelf();
            popupShelf.Owner = this;
            popupShelf.Hide();

            if (App.Current.Properties.Contains("OpenFile"))
            {
                try
                {
                    string path = (string)App.Current.Properties["OpenFile"];
                    if (string.IsNullOrEmpty(path))
                    {
                        return;
                    }
                    HandleOpen(path);
                }
                catch
                {
                }
            }

            Log.Info("Main Window Loaded");
        }
Пример #2
0
        private void Window_Loaded(object sender, RoutedEventArgs e)
        {
            BuildRecentSubMenu();
            BuildRecentShortcuts();
            MateriaInputManager.Init();
            RegisterInputActions();

            Log.Info("Main Window Loaded");
        }
Пример #3
0
        private void Window_Loaded(object sender, RoutedEventArgs e)
        {
            BuildRecentSubMenu();
            BuildRecentShortcuts();
            MateriaInputManager.Init();
            RegisterInputActions();

            popupShelf       = new UIPopupShelf();
            popupShelf.Owner = this;
            popupShelf.Hide();

            Log.Info("Main Window Loaded");
        }