예제 #1
0
        }        // End Method

        //--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
        // Pubilc Method
        //--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

        /// <summary>
        /// DataTableの設定をします。外部から引数を利用することでコントロール側に持ってこれることが判明。
        /// </summary>
        /// <param name="SkillDataTable">Skill Data Table</param>
        public void SetDataBindings(__table_skillDataTable SkillDataTable)
        {
            // データバインドの設定
            StatusGraphMeleeATK.SetDataBindings(SkillDataTable, "ATK");
            StatusGraphMeleeDEF.SetDataBindings(SkillDataTable, "DEF");
            StatusGraphRangeATK.SetDataBindings(SkillDataTable, "RAT");
            StatusGraphRangeDEF.SetDataBindings(SkillDataTable, "RDF");
            StatusGraphMagicATK.SetDataBindings(SkillDataTable, "MAT");
            StatusGraphMagicDEF.SetDataBindings(SkillDataTable, "MDF");
            StatusGraphSPD.SetDataBindings(SkillDataTable, "SPD");

            //----------------------------------------------------------------------------------------------------
            // デザイナーの設定

            Anchor = (AnchorStyles.Top | AnchorStyles.Left | AnchorStyles.Right);
        }        // End Method
        }        // End Method

        //--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
        // Pubilc Method
        //--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

        /// <summary>
        /// DataTableの設定をします。外部から引数を利用することでコントロール側に持ってこれることが判明。
        /// </summary>
        /// <param name="ItemDataTable">Item Data Table</param>
        public void SetDataBindings(DataTable ItemDataTable)
        {
            // データバインドの設定
            StatusGraphHP.SetDataBindings(ItemDataTable, "HP");
            StatusGraphTP.SetDataBindings(ItemDataTable, "TP");
            StatusGraphMeleeATK.SetDataBindings(ItemDataTable, "ATK");
            StatusGraphMeleeDEF.SetDataBindings(ItemDataTable, "DEF");
            StatusGraphRangeATK.SetDataBindings(ItemDataTable, "RAT");
            StatusGraphRangeDEF.SetDataBindings(ItemDataTable, "RDF");
            StatusGraphMagicATK.SetDataBindings(ItemDataTable, "MAT");
            StatusGraphMagicDEF.SetDataBindings(ItemDataTable, "MDF");
            StatusGraphSPD.SetDataBindings(ItemDataTable, "SPD");
            StatusGraphLuck.SetDataBindings(ItemDataTable, "LUK");
            StatusGraphHIT.SetDataBindings(ItemDataTable, "HIT");
            StatusGraphEVT.SetDataBindings(ItemDataTable, "EVT");

            //----------------------------------------------------------------------------------------------------
            // デザイナーの設定

            Anchor = (AnchorStyles.Top | AnchorStyles.Left | AnchorStyles.Right);
        }        // End Method