コード例 #1
0
    void    OnChanged(Datasack ds)
    {
        string display = ds.GetArrayValue(index);

        if (!System.String.IsNullOrEmpty(FormatString))
        {
            textAbstraction.SetText(System.String.Format(FormatString, display));
            return;
        }
        textAbstraction.SetText(display);
    }
コード例 #2
0
    void PrintArray(Datasack ds)
    {
        string s = ds.FullName;

        int length = ds.GetArrayLength();

        s += System.String.Format(": {0} elements. [", length);

        for (int i = 0; i < length; i++)
        {
            s = s + System.String.Format("{0}{1}", ds.GetArrayValue(i), (i < length - 1) ? "," : "");
        }

        s += "]\n";

        DebugOut(s);
    }