Ejemplo n.º 1
0
 /// <summary>
 /// Initializes a new instance of the class.
 /// </summary>
 public AppData()
 {
     AppDirs     = new AdminDirs();
     ErrLog      = new Log(Log.Formats.Full);
     AppSettings = new AdminSettings();
     AppState    = new AppState();
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Initializes a new instance of the class.
 /// </summary>
 public AppData()
 {
     AppDirs = new AdminDirs();
     ErrLog  = new LogStub();
     Config  = new AdminConfig();
     State   = new AppState();
 }
Ejemplo n.º 3
0
        private ScadaProject currentProject; // the project currently open


        /// <summary>
        /// Initializes a new instance of the class.
        /// </summary>
        public AppData()
        {
            AppConfig       = new AdminConfig();
            State           = new AppState();
            AppDirs         = new AdminDirs();
            ErrLog          = LogStub.Instance;
            ExtensionHolder = null;
            CurrentProject  = null;
            MainForm        = null;
        }
Ejemplo n.º 4
0
 /// <summary>
 /// Initializes a new instance of the class.
 /// </summary>
 public Uploader(AdminDirs appDirs, ScadaProject project, ProjectInstance instance,
                 DeploymentProfile profile, ITransferControl transferControl)
 {
     this.appDirs         = appDirs ?? throw new ArgumentNullException(nameof(appDirs));
     this.project         = project ?? throw new ArgumentNullException(nameof(project));
     this.instance        = instance ?? throw new ArgumentNullException(nameof(instance));
     this.profile         = profile ?? throw new ArgumentNullException(nameof(profile));
     this.transferControl = transferControl ?? throw new ArgumentNullException(nameof(transferControl));
     uploadOptions        = profile.UploadOptions;
     progressTracker      = new ProgressTracker(transferControl)
     {
         TaskCount = TaskCount
     };
 }