private void b_LoadTags_Click(object sender, EventArgs e) { //|| tb_ReasonCode.Text == "" if (tb_DocNo.Text == "" || tb_InvAccount.Text == "") { MessageBox.Show("The Transaction Info Fields can not be empty.", "ERROR", MessageBoxButtons.OK, MessageBoxIcon.Error); } else { Tags = x.TicketTagCount(tb_DocNo.Text, tb_ReasonCode.Text, tb_InvAccount.Text); dgv_BalanceTags.DataSource = Tags; if (Tags.Rows.Count > 0) { b_CreateFSTI.Enabled = true; } } }