예제 #1
0
    public void OnSubmit()
    {
        double val = value.text == string.Empty ? 0 : double.Parse(value.text);

        if (title.text == string.Empty || val < 0)
        {
            return;
        }
        mainControl.AddPurse(title.text, val, curency);
        Hide();
    }