コード例 #1
0
        // save results and dismiss dialog
        private void _btnOK_Click(object sender, System.EventArgs e)
        {
            // apply changes
            _report.CopyDefinitionFrom(_edit);

            // done
            DialogResult = DialogResult.OK;
        }
コード例 #2
0
        // bind dialog to a report and show it
        public DialogResult ShowDialog(C1FlexReport report)
        {
            // create a copy of the report, this is the one we'll edit with the dialog
            _report = report;
            _edit   = new C1FlexReport();
            _edit.CopyDefinitionFrom(_report);

            // set text on graphical buttons
            _btnUp.Text   = ((char)0xe9).ToString();
            _btnDown.Text = ((char)0xea).ToString();

            // ready to go
            return(base.ShowDialog());
        }