Ejemplo n.º 1
0
 private void AddAccessObject(IObjecOptions objectOptions)
 {
     //database objects must be the first element in the collecion
     if ((objectOptions.ObjectType == ObjectType.DatabaseDao ||
          objectOptions.ObjectType == ObjectType.DatabasePrj) &&
         Objects.Count > 0)
     {
         throw new ArgumentException(Properties.Resources.DatabaseObjectMustBeFirst);
     }
     Objects.Add(objectOptions);
 }
 /// <summary>
 /// Constructor
 /// </summary>
 /// <param name="progressPercentaje">asyncronous progress percentaje</param>
 /// <param name="objectName">current Access Object to be processes</param>
 public SelectedObjectsProgressEventArgs(int progressPercentaje, IObjecOptions objectName)
     : base()
 {
     ProgressPercentaje = progressPercentaje;
     ObjectName         = objectName;
 }