/// <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();
            }
        }
Exemple #3
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);
            }                 
        }
        /// <summary>
        /// заполнить поля ввода
        /// </summary>
        public void Init()
        {
            tbPage.Text     = Page.ToString();
            tbDocument.Text = DocumentName;
            tbTome.Text     = Tome.ToString();

            if (TypeContent == typeSticker.Bookmark)
            {
                Text        = "Новая закладка";
                tbName.Text = "Закладка 1";
            }
            else if (TypeContent == typeSticker.Explanetion)
            {
                Text        = "Новое пояснение";
                tbName.Text = "Пояснение 1";
            }
            if (!string.IsNullOrWhiteSpace(Title))
            {
                tbName.Text = Title;
            }
            tbContent.Text = Content;
            tbName.Select();
            tbName.SelectAll();
        }