private void editBtn_Click(object sender, EventArgs e) { SectionUI s = (SectionUI)documentSectionGrid.CurrentRow.DataBoundItem; EditSection edit = new EditSection(s.ToSection()); edit.Show(); }
private void button1_Click(object sender, EventArgs e) { SectionUI s = (SectionUI)documentSectionGrid.CurrentRow.DataBoundItem; Form history = new History(s); history.Show(); }
public History(SectionUI s) { InitializeComponent(); foreach (HistoryItem h in s.History) { HistoryTextBox.Text = h.ToString(); } }
public static RenderFragment?ToRenderFragment(this SectionUI section) { if (section.CustomType == null) { return(null); } return(builder => { builder.OpenComponent(0, section.CustomType); builder.AddAttribute(1, nameof(BaseSection.Section), section); builder.CloseComponent(); }); }
private void declineBtn_Click(object sender, EventArgs e) { SectionUI section = (SectionUI)sectionGrid.CurrentRow.DataBoundItem; Core.Instance.DeclineSection(section.ToSection(), Core.Instance.User); }