/// <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); } }
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); }