示例#1
0
 public void Open()
 {
     try
     {
         if (!File.Exists(Path))
         {
             if (Directory.Exists(Parent.Path))
             {
                 Parent.Files.Remove(this);
             }
             else
             {
                 DirectoryViewModelBase.OnNoExistDirectory(Parent);
             }
             MessageBoxService.Instance.ShowError(FileDoesExistException.Msg);
             return;
         }
         Process.Start(Path);
     }
     //operation was canceled user
     catch (Win32Exception)
     {
     }
 }