Exemple #1
0
 void onLayoutValidated(object sender, LayoutCtrlEventArgs e)
 {
     try
     {
         string appPath = "K:\\GitHub\\PicGEOM\\Release\\PicGEOM.exe";
         if (File.Exists(appPath))
         {
             Process.Start(appPath, string.Format("\"{0}\"", e._outputPath));
         }
     }
     catch (Exception ex)
     {
         _log.Error(ex.ToString());
     }
     Close();
 }
 void onLayoutValidated(object sender, LayoutCtrlEventArgs e)
 {
     try
     {
         if (File.Exists(e._outputPath))
         {
             GenerateDocument(_outputFile, e._result, e._outputPath);
             DialogResult = DialogResult.OK;
         }
     }
     catch (Exception ex)
     {
         _log.Error(ex.ToString());
     }
     Close();
 }
Exemple #3
0
 void onLayoutCanceled(object sender, LayoutCtrlEventArgs e)
 {
     Close();
 }
 void onLayoutCanceled(object sender, LayoutCtrlEventArgs e)
 {
     GenerateDocument(_outputFile, 0, string.Empty);
     Close();
 }