コード例 #1
0
 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();
     }
 }
コード例 #2
0
 public async Task <BarcodeClient.BarcodeInfo> Post(string barcode)
 {
     return(await InfoProvider.FetchBarcode(barcode));
 }
コード例 #3
0
        public FormKind GetRecordFormKind(Type recordType)
        {
            var recinf = InfoProvider.GetRecordInfo(recordType);

            return((FormKind)recinf.Signature);
        }
コード例 #4
0
        public virtual Field CreateField(Type type)
        {
            var fldinf = InfoProvider.GetFieldInfo(type);

            return(fldinf.CreateInstance());
        }
コード例 #5
0
        private void AddSupportedType(Type type)
        {
            var recinfo = InfoProvider.GetRecordInfo(type);

            formKindToRecordTypeMap.Add((FormKind)recinfo.Signature, type);
        }