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); }
private void UpdateValue(object sender, EventArgs e) { _clientValue.Rtf = RtfFactory.BuildValue(Row.Format(_client.GetMostRecentEntry(false).Value)); }
private void AssembleClientCard() { _clientCard.Rtf = RtfFactory.BuildClientCardLarge(_client); }
private void AssembleCard() { _clientCard.Rtf = RtfFactory.BuildClientCard(_client); _clientCard.Enabled = false; }