public AdminReportAddChangeForm(RepReportTemplate reportTemplate)
     : this()
 {
     this.m_repReportTemplate = reportTemplate;
 }
Esempio n. 2
0
 private void tbsAdd_Click(object sender, System.EventArgs e)
 {
     RepReportTemplate reportTemplate = new RepReportTemplate();
     AdminReportAddChangeForm form = new AdminReportAddChangeForm(reportTemplate);
     form.set_Text("Добавление отчета");
     if (form.ShowDialog(this) != System.Windows.Forms.DialogResult.OK)
     {
         this.bsReportTemplate.set_Sort(this.bsReportTemplate.get_Sort());
         this.UpdateBindingSourceReportTemplate();
         this.bsReportTemplate.set_Position(this.bsReportTemplate.IndexOf(reportTemplate));
     }
 }
 public AdminReportAddChangeForm()
 {
     this.m_repReportTemplate = RepReportTemplate.Null;
     this.InitializeComponent();
 }