示例#1
0
        private void InitilizeComboBoxAndTextBoxAmount()
        {
            var response = _GrabarDBCaller.ViewPersons();

            if (response.Response.Code == 0)
            {
                if (response.Persons.Count > 0)
                {
                    staticPersons = response;
                    ComboBoxPersons.Items.AddRange(response.Persons.Select(person => person.First_Name + " " + person.Last_Name).ToArray());
                }
            }
            TxtBoxAmount.Text = 0.ToString();
        }
示例#2
0
        private void InitilizeComboBoxAndTextBoxAmount()
        {
            var response = _GrabarDBCaller.ViewPersons();

            if (response.Response.Code == 0)
            {
                if (response.Persons.Count > 0)
                {
                    staticPersons = response;
                    ComboBoxPersons.Items.AddRange(response.Persons.Select(person => person.First_Name + " " + person.Last_Name).ToArray());
                    ComboBoxPersons.Items.Add("ALL");
                    ComboBoxPersons.AutoCompleteMode = AutoCompleteMode.Append;
                }
            }
        }