Inheritance: System.EventArgs
Exemplo n.º 1
0
 public static void OnTryOpen(object sender, TryOpenEventArgs e)
 {
     if (TryOpen != null)
     {
         TryOpen(sender, e);
     }
 }
 private void OnTryOpen(object sender, TryOpenEventArgs data)
 {
     if (IsDirty)
     {
         if (AskSaving() == AskSaveResult.Cancel)
         {
             return;
         }
     }
     _fileService.OpenFile(data.iEditor);
 }