Пример #1
0
        private void buttonSearch_Click(object sender, EventArgs e)
        {
            var type = SearchType.DATE;

            if (rbCount.Checked)
            {
                type = SearchType.FINAL_COST;
            }
            if (rbName.Checked)
            {
                type = SearchType.SERVICE_NAME;
            }
            var data = tbSearch.Text;

            ButtonSearchEvent?.Invoke(type, data);
            Close();
        }
Пример #2
0
        private void button2_Click(object sender, EventArgs e)
        {
            var type = SearchType.NAME;

            if (rbFlat.Checked)
            {
                type = SearchType.FLAT;
            }
            if (rbCount.Checked)
            {
                type = SearchType.COUNT;
            }
            var data = tbSearch.Text;

            ButtonSearchEvent?.Invoke(type, data);
            Close();
        }