コード例 #1
0
 public void Update(Star star)
 {
     label11.Text          = star.Name;
     _linkedstar           = star;
     _resourcedistribution = star.ResourceDistribution;
     UpdateValues();
 }
コード例 #2
0
        //public int Ecology { get; set; }
        //public int Technology { get; set; }

        public Star()
        {
            TotalIndustry   = 1;
            TotalCommercial = 1;
            //Ecology = 1;
            //Technology = 1;
            ResourceDistribution = new ResourceDistribution();
        }
コード例 #3
0
 public StarViewControl()
 {
     InitializeComponent();
     _resourcedistribution = new ResourceDistribution();
     sliders = new List <HScrollBar>();
     sliders.Add(hScrIndustry);
     sliders.Add(hScrlComercial);
     sliders.Add(hScrlEcology);
     sliders.Add(hScrlTechnology);
     SetDefaultValues();
 }