BF2Statistics.MedalData.GlobalStatMultTimes.ToTree C# (CSharp) Method

ToTree() public method

Covnerts the conditions into a TreeNode
public ToTree ( ) : TreeNode
return System.Windows.Forms.TreeNode
        public override TreeNode ToTree()
        {
            // Achieve award less times then
            string Type = StatsConstants.PythonGlobalVars[Params[1]];
            string Value = (StatsConstants.IsTimeStat(Params[1]))
                ? Condition.Sec2hms( Int32.Parse(Params[2]) )
                : String.Format("{0:N0}", Int32.Parse(Params[2]));

            TreeNode Me = new TreeNode("Achieved " + Value + " Global " + Type + " One or More Times");
            Me.Tag = this;
            return Me;
        }