Пример #1
0
 private void Dialog_ReadingDone(object sender, ReadingDoneEventArgs e)
 {
     if (e.Successful)
     {
         editorList.RootSection = e.ResultSection;
     }
 }
Пример #2
0
 private void Dialog_ReadingDone(object sender, ReadingDoneEventArgs e)
 {
     if (e.Successful)
     {
         editorList.RootSection = e.ResultSection;
     }
 }
Пример #3
0
 private void bworker_RunWorkerCompleted(object sender, RunWorkerCompletedEventArgs e)
 {
     if (e.Error != null)
     {
         MessageBox.Show("Error loading file: " + path + ". Error: " + e.Error.Message);
         if (ReadingDone != null)
         {
             ReadingDoneEventArgs args = new ReadingDoneEventArgs();
             args.Successful = true;
             ReadingDone(this, args);
         }
     }
     else if (ReadingDone != null)
     {
         ReadingDoneEventArgs args = new ReadingDoneEventArgs();
         args.ResultSection = m_resultEditor;
         args.Successful = true;
         ReadingDone(this, args);
     }
     this.Close();
 }
Пример #4
0
 private void bworker_RunWorkerCompleted(object sender, RunWorkerCompletedEventArgs e)
 {
     if (e.Error != null)
     {
         MessageBox.Show("Error loading file: " + path + ". Error: " + e.Error.Message);
         if (ReadingDone != null)
         {
             ReadingDoneEventArgs args = new ReadingDoneEventArgs();
             args.Successful = true;
             ReadingDone(this, args);
         }
     }
     else if (ReadingDone != null)
     {
         ReadingDoneEventArgs args = new ReadingDoneEventArgs();
         args.ResultSection = m_resultEditor;
         args.Successful    = true;
         ReadingDone(this, args);
     }
     this.Close();
 }