Пример #1
0
 /// <summary>
 /// 資源情報を更新
 /// </summary>
 /// <param name="data"></param>
 public void Update(MemberData.Material data)
 {
     if (InvokeRequired)
     {
         BeginInvoke((MethodInvoker)(() => updateMaterialView(data)));
     }
     else
     {
         updateMaterialView(data);
     }
 }
Пример #2
0
        void updateMaterialView(MemberData.Material data)
        {
            lblFuel.Text    = data.Fuel.ToString();
            lblBullet.Text  = data.Ammo.ToString();
            lblSteel.Text   = data.Steel.ToString();
            lblBauxite.Text = data.Bauxite.ToString();

            lblFastRepair.Text = data.FastRepair.ToString();
            lblFastBuild.Text  = data.FastBuild.ToString();
            lblDevelop.Text    = data.Developer.ToString();
            lblUpdater.Text    = data.Updater.ToString();
        }