コード例 #1
0
 /// <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();
 }
コード例 #2
0
        public void UpgateView()
        {
            if (!string.IsNullOrWhiteSpace(NameDoc))
            {
                lbTome.Text   = Tome.ToString();
                lbNumber.Text = DocNumber.ToString();

                LbTitleDocument.Text = NameDoc;
                LbStartPage.Text     = "стр. " + PageStart.ToString();
            }
        }
コード例 #3
0
        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);
        }