private void FillFromList() { cboFrom.DataSource = null; cboFrom.Items.Clear(); if (rbtnPosted.Checked) { InvtSubLedgerCAP_HeaderEx.LoadCombo(ref cboFrom, "TxNumber", false, false, string.Empty, "TxType = 'CAP'"); } else { InvtBatchCAP_HeaderEx.LoadCombo(ref cboFrom, "TxNumber", false, false, string.Empty, "TxType = 'CAP'"); } }
private void FillToList() { cboTo.DataSource = null; cboTo.Items.Clear(); if (rbtnPosted.Checked) { InvtSubLedgerCAP_HeaderEx.LoadCombo(ref cboTo, "TxNumber", false, false, string.Empty, "TxType = 'CAP'"); } else { InvtBatchCAP_HeaderEx.LoadCombo(ref cboTo, "TxNumber", false, false, string.Empty, "TxType = 'CAP'"); } if (cboTo.Items.Count > 0) { cboTo.SelectedIndex = cboTo.Items.Count - 1; } }