BasicCommandHandlers.FileLauncherTypeSelection.OpenDialog C# (CSharp) Метод

OpenDialog() приватный Метод

private OpenDialog ( ) : void
Результат void
        void OpenDialog()
        {
            // Configure open file dialog box
            var dlg = new Microsoft.Win32.OpenFileDialog { Filter = "Tous le fichiers (*.*)|*.*" };

            // Show open file dialog box
            Nullable<bool> result = dlg.ShowDialog();

            // Process open file dialog box results
            if( result == true )
            {
                // Open document
                Manager.SetSelectedFile(dlg.FileName);
            }
        }