Subversion Repositories DevTools

Rev

Rev 2096 | Rev 2104 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 2096 Rev 2100
Line 165... Line 165...
165
               MessageBox.Show( "Error in EA_DocGen option\n\n" + s + "\n\n" + "Expected valid integer" );
165
               MessageBox.Show( "Error in EA_DocGen option\n\n" + s + "\n\n" + "Expected valid integer" );
166
            }
166
            }
167
         }   
167
         }   
168
         return returnVal;
168
         return returnVal;
169
      }
169
      }
-
 
170
 
-
 
171
      public double getOptionValue(string s, double defaultReturnValue)
170
   
172
      {
-
 
173
         double returnVal = defaultReturnValue;
-
 
174
 
-
 
175
         string optionValue = getOptionValueString(s);
-
 
176
         if (optionValue != null)
-
 
177
         {
-
 
178
            try
-
 
179
            {
-
 
180
               returnVal = Convert.ToDouble(optionValue);
-
 
181
            }
-
 
182
            catch(Exception)
-
 
183
            {
-
 
184
               MessageBox.Show( "Error in EA_DocGen option\n\n" + s + "\n\n" + "Expected valid double" );
-
 
185
            }
-
 
186
         }   
-
 
187
         return returnVal;
-
 
188
      }
171
 
189
 
172
      public bool getOptionValue(string s, bool defaultReturnValue)
190
      public bool getOptionValue(string s, bool defaultReturnValue)
173
      {
191
      {
174
         bool returnVal = defaultReturnValue;
192
         bool returnVal = defaultReturnValue;
175
 
193