예제 #1
0
        /// <summary>
        /// Заполнение полей формыж
        /// </summary>
        public void Init()
        {
            TbFullName.Text = Fullname;
            tbName.Text = NameDocument;
            TbTome.Text = Tome.ToString();
            TbNumber.Text = Number.ToString();
            tbPage.Text = PageStart.ToString();
            TbAmountPages.Text = AmountPage.ToString();
            tbTypeDocument.Text = TypeDocument;

            try
            {
                dateTimePicker1.Value = dateTimePicker1.MinDate > Date ? DateTime.Now : Date;

            }
            catch (Exception e)
            {
                Debug.WriteLine(e.Message);
            }                 
        }
예제 #2
0
 public override string ToString()
 {
     return("Name:" + Name.ToString() + " " + "Binding:" + Binding.ToString() + " " + "Year:" + Year.ToString() + " " + "Amount author:" + AmountAuthor.ToString() + " " + "Format:" + Format.ToString() + " " + "Amount page:" + AmountPage.ToString() + ";" + Environment.NewLine);
 }