/// <summary> /// заполнить поля ввода /// </summary> public void Init() { LbTitle.Text = Title; toolTip1.SetToolTip(LbTitle, Title); lbDocNumber.Text = DocNumber.ToString(); lbTome.Text = Tome.ToString(); LbStartPage.Text = PageStart.ToString(); ChangeHeight(); }
public void UpgateView() { if (!string.IsNullOrWhiteSpace(NameDoc)) { lbTome.Text = Tome.ToString(); lbNumber.Text = DocNumber.ToString(); LbTitleDocument.Text = NameDoc; LbStartPage.Text = "стр. " + PageStart.ToString(); } }
/// <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 int GetHashCode() { unchecked { var hashCode = (Authors1 != null? Authors1.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (Title != null? Title.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (Authors2 != null? Authors2.GetHashCode() : 0); hashCode = (hashCode * 397) ^ HasOtherAuthors.GetHashCode(); hashCode = (hashCode * 397) ^ (Editor != null? Editor.GetHashCode() : 0); hashCode = (hashCode * 397) ^ HasOtherEditors.GetHashCode(); hashCode = (hashCode * 397) ^ Edition.GetHashCode(); hashCode = (hashCode * 397) ^ (PublisherCity != null? PublisherCity.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (PublisherName != null? PublisherName.GetHashCode() : 0); hashCode = (hashCode * 397) ^ PublisherYear.GetHashCode(); hashCode = (hashCode * 397) ^ Pages.GetHashCode(); hashCode = (hashCode * 397) ^ PageStart.GetHashCode(); hashCode = (hashCode * 397) ^ PageEnd.GetHashCode(); hashCode = (hashCode * 397) ^ Number.GetHashCode(); return(hashCode); } }
private void OnPageStart(PageEventArgs e) { PageStart?.Invoke(this, e); }