Пример #1
0
 private void DialogClosedHandler(object sender, KWinFramework.Views.WinForms.Dialogs.DialogClosedEventArgs e)
 {
     if (e.DialogViewResult == KWinFramework.Views.WinForms.Dialogs.DialogViewResult.Ok)
     {
         subtitlesManager.Load(View.FileName);
     }
 }
Пример #2
0
 private void DialogClosedHandler(object sender, KWinFramework.Views.WinForms.Dialogs.DialogClosedEventArgs e)
 {
     if (e.DialogViewResult == KWinFramework.Views.WinForms.Dialogs.DialogViewResult.Ok)
     {
         subtitlesManager.CurrentSubtitles.Path = View.FileName;
         subtitlesManager.Save();
     }
     else if (e.DialogViewResult == KWinFramework.Views.WinForms.Dialogs.DialogViewResult.Cancel)
     {
         if (cancellationToken != null)
         {
             cancellationToken.Cancel = true;
         }
     }
 }