Пример #1
0
        internal void SetData(Purse purse)
        {
            labelUser1R.Text  = purse.Count(1, true).ToString();
            labelUser2R.Text  = purse.Count(2, true).ToString();
            labelUser5R.Text  = purse.Count(5, true).ToString();
            labelUser10R.Text = purse.Count(10, true).ToString();
            labelUserSum.Text = purse.Sum(true) + "₽";

            label1R.Text  = purse.Count(1, false).ToString();
            label2R.Text  = purse.Count(2, false).ToString();
            label5R.Text  = purse.Count(5, false).ToString();
            label10R.Text = purse.Count(10, false).ToString();
            labelSum.Text = purse.Sum(false) + "₽";
        }