コード例 #1
0
        private void editBtn_Click(object sender, EventArgs e)
        {
            SectionUI   s    = (SectionUI)documentSectionGrid.CurrentRow.DataBoundItem;
            EditSection edit = new EditSection(s.ToSection());

            edit.Show();
        }
コード例 #2
0
        private void button1_Click(object sender, EventArgs e)
        {
            SectionUI s       = (SectionUI)documentSectionGrid.CurrentRow.DataBoundItem;
            Form      history = new History(s);

            history.Show();
        }
コード例 #3
0
ファイル: History.cs プロジェクト: HHIED/CAD
 public History(SectionUI s)
 {
     InitializeComponent();
     foreach (HistoryItem h in s.History)
     {
         HistoryTextBox.Text = h.ToString();
     }
 }
コード例 #4
0
        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();
            });
        }
コード例 #5
0
        private void declineBtn_Click(object sender, EventArgs e)
        {
            SectionUI section = (SectionUI)sectionGrid.CurrentRow.DataBoundItem;

            Core.Instance.DeclineSection(section.ToSection(), Core.Instance.User);
        }