示例#1
0
 /// <summary>
 /// Test if we have enough data to do a signing. If not, display a
 /// dialog box asking for the remainder.
 /// </summary>
 /// <returns>false if user canceled, otherwise true.</returns>
 private bool GetAnyNeededUserInput()
 {
     // Test if we have enough data:
     if (m_parameters.IsUserInputNeeded())
     {
         // Show dialog box asking for more details:
         var dlg = new SignMasterForm(ref m_parameters);
         if (dlg.ShowDialog() == DialogResult.Cancel)
             return false;
     }
     // Make sure the input data is sensible:
     m_parameters.ValidateData();
     return true;
 }
示例#2
0
 /// <summary>
 /// Test if we have enough data to do a signing. If not, display a
 /// dialog box asking for the remainder.
 /// </summary>
 /// <returns>false if user canceled, otherwise true.</returns>
 private bool GetAnyNeededUserInput()
 {
     // Test if we have enough data:
     if (m_parameters.IsUserInputNeeded())
     {
         // Show dialog box asking for more details:
         var dlg = new SignMasterForm(ref m_parameters);
         if (dlg.ShowDialog() == DialogResult.Cancel)
         {
             return(false);
         }
     }
     // Make sure the input data is sensible:
     m_parameters.ValidateData();
     return(true);
 }