/// <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(); } }
public string getDocumentNumber() { //string documentNumber = "№ " + DepartmentRegistrator.Name + "-" + DocNumberYear.ToString() + "/" + DocNumber.ToString(); // +DocNumberModificator; string documentNumber; if (String.IsNullOrEmpty(DepartmentRegistrator.PostCode)) { documentNumber = DocNumber.ToString() + "/" + DepartmentRegistrator.Code + "-" + DocNumberYear.ToString().Substring(2, 2); // +DocNumberModificator; } else { documentNumber = DocNumber.ToString() + "/" + DepartmentRegistrator.PostCode + "-" + DocNumberYear.ToString().Substring(2, 2); // +DocNumberModificator; } return(documentNumber); }