/// <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(); }
/// <summary> /// Initializes a new instance of the class. /// </summary> public AppData() { AppDirs = new AdminDirs(); ErrLog = new LogStub(); Config = new AdminConfig(); State = new AppState(); }
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; }
/// <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 }; }