private void txtBookTitle_TextChanged(object sender, EventArgs e) { if (BookDAO.Instance.IsAcceptedBookTitle(txtBookTitle.Text)) { if (BookDAO.Instance.IsSameTitle(txtBookTitle.Text)) { txtID.Visible = false; cbID.Visible = true; InfoProvider.SetError(txtBookTitle, "There are more than one book with this title. Please specified ID"); LoadComboBoxID(txtBookTitle.Text); } else { InfoProvider.SetError(txtBookTitle, null); txtID.Text = BookDAO.Instance.GetIdFromBookTitle(txtBookTitle.Text); } } else { ClearInfo(); } }
public async Task <BarcodeClient.BarcodeInfo> Post(string barcode) { return(await InfoProvider.FetchBarcode(barcode)); }
public FormKind GetRecordFormKind(Type recordType) { var recinf = InfoProvider.GetRecordInfo(recordType); return((FormKind)recinf.Signature); }
public virtual Field CreateField(Type type) { var fldinf = InfoProvider.GetFieldInfo(type); return(fldinf.CreateInstance()); }
private void AddSupportedType(Type type) { var recinfo = InfoProvider.GetRecordInfo(type); formKindToRecordTypeMap.Add((FormKind)recinfo.Signature, type); }