Exemplo n.º 1
0
        private void InitControls()
        {
            TxtIdx.Clear();
            TxtAuthor.Clear();
            TxtNames.Clear();
            TxtIsbn.Clear();
            TxtPrice.Clear();
            CboDivision.SelectedIndex = 0;
            DtReleaseDate.Value       = DateTime.Today;

            TxtIdx.Focus();

            baseMode = BaseMode.NONE;

            #region comboBox Dictionary

            /*Dictionary<string, string> dic = new Dictionary<string, string>
             * {
             *  { "선택", "00" },
             *  { "서울특별시", "11" },
             *  { "부산광역시", "21" },
             *  { "대구광역시", "22" },
             *  { "인천광역시", "23" },
             *  { "광주광역시", "24" },
             *  { "대전광역시", "25" }
             * };
             *
             * CboDivision.DataSource = new BindingSource(dic, null);
             * CboDivision.DisplayMember = "Key";
             * CboDivision.ValueMember = "Value";*/
            #endregion
        }
 private void Clear()
 {
     TxtBookName.Clear();
     TxtAuthor.Clear();
     TxtCount.Clear();
     TxtRentalPrice.Clear();
     CmbGenre.SelectedItem = null;
 }