Пример #1
0
        private void InsertClient(Client client)
        {
            ControlClient cc = new ControlClient(client)
            {
                Dock = DockStyle.Top
            };

            if (cc.Controls[0].Controls["_clientCard"] is RichTextBox control)
            {
                control.Rtf = RtfFactory.BuildClientCard(client);
            }

            _mainPanel.Controls.Add(cc);
        }
Пример #2
0
 private void UpdateValue(object sender, EventArgs e)
 {
     _clientValue.Rtf = RtfFactory.BuildValue(Row.Format(_client.GetMostRecentEntry(false).Value));
 }
Пример #3
0
 private void AssembleClientCard()
 {
     _clientCard.Rtf = RtfFactory.BuildClientCardLarge(_client);
 }
Пример #4
0
 private void AssembleCard()
 {
     _clientCard.Rtf     = RtfFactory.BuildClientCard(_client);
     _clientCard.Enabled = false;
 }