private RecordManager()
        {
            MasterPath = @"Record";
            EnemyFleet = new EnemyFleetRecord();
            ShipParameter = new ShipParameterRecord();
            Construction = new ConstructionRecord();
            ShipDrop = new ShipDropRecord();
            Development = new DevelopmentRecord();
            Resource = new ResourceRecord();

            if ( !Directory.Exists( MasterPath ) ) {
                Directory.CreateDirectory( MasterPath );
            }
        }
Example #2
0
        private RecordManager()
        {
            MasterPath    = @"Record";
            EnemyFleet    = new EnemyFleetRecord();
            ShipParameter = new ShipParameterRecord();
            Construction  = new ConstructionRecord();
            ShipDrop      = new ShipDropRecord();
            Development   = new DevelopmentRecord();
            Resource      = new ResourceRecord();

            if (!Directory.Exists(MasterPath))
            {
                Directory.CreateDirectory(MasterPath);
            }
        }
		private RecordManager() {

			MasterPath = @"Record";
			EnemyFleet = new EnemyFleetRecord();
			ShipParameter = new ShipParameterRecord();
			Construction = new ConstructionRecord();
			ShipDrop = new ShipDropRecord();
			Development = new DevelopmentRecord();
			Resource = new ResourceRecord();

			if ( !Directory.Exists( MasterPath ) ) {
				Directory.CreateDirectory( MasterPath );
			}

			_prevTime = DateTime.Now;
			Observer.APIObserver.Instance["api_port/port"].ResponseReceived += TimerSave;
		}
        private RecordManager()
        {
            MasterPath    = @"Record";
            EnemyFleet    = new EnemyFleetRecord();
            ShipParameter = new ShipParameterRecord();
            Construction  = new ConstructionRecord();
            ShipDrop      = new ShipDropRecord();
            Development   = new DevelopmentRecord();
            Resource      = new ResourceRecord();

            if (!Directory.Exists(MasterPath))
            {
                Directory.CreateDirectory(MasterPath);
            }

            _prevTime = DateTime.Now;
            Observer.APIObserver.Instance["api_port/port"].ResponseReceived += TimerSave;
        }
		public DialogConstructionRecordViewer() {
			InitializeComponent();

			_record = RecordManager.Instance.Construction;
		}
		private string GetRecipeStringForSorting( ConstructionRecord.ConstructionElement record, bool containsDevmat = false ) {
			if ( containsDevmat )
				return GetRecipeStringForSorting( new[] { record.Fuel, record.Ammo, record.Steel, record.Bauxite, record.DevelopmentMaterial } );
			else
				return GetRecipeStringForSorting( new[] { record.Fuel, record.Ammo, record.Steel, record.Bauxite } );
		}