コード例 #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();
 }
コード例 #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();
 }
コード例 #3
0
ファイル: AppData.cs プロジェクト: RapidScada/scada-v6
        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;
        }
コード例 #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
     };
 }