Exemplo n.º 1
0
 private void tbAdd_Click(object sender, EventArgs e)
 {
     Forms.frmQuickReportEditor frm = new QuickReport.Forms.frmQuickReportEditor();
     frm.Init();
     frm.Text = " - 编辑报表";
     frm.ShowDialog();
     frm.Dispose();
     LoadQuickReports();
 }
Exemplo n.º 2
0
 private void tvReports_NodeMouseDoubleClick(object sender, TreeNodeMouseClickEventArgs e)
 {
     if (e.Node.Tag == null)
     {
         return;
     }
     Forms.frmQuickReportEditor frm = new QuickReport.Forms.frmQuickReportEditor();
     frm.LoadQuickReport((QuickReport.Objects.QuickReportObject)e.Node.Tag);
     frm.Text = ((QuickReport.Objects.QuickReportObject)e.Node.Tag).Name + " - 编辑报表";
     frm.ShowDialog();
     frm.Dispose();
     LoadQuickReports();
 }
Exemplo n.º 3
0
 private void QuickReportList_KeyDown(object sender, KeyEventArgs e)
 {
     if (tvReports.SelectedNode == null || tvReports.SelectedNode.Tag == null)
     {
         return;
     }
     if (e.KeyCode == Keys.Enter)
     {
         Forms.frmQuickReportEditor frm = new QuickReport.Forms.frmQuickReportEditor();
         frm.LoadQuickReport((QuickReport.Objects.QuickReportObject)tvReports.SelectedNode.Tag);
         frm.Text = ((QuickReport.Objects.QuickReportObject)tvReports.SelectedNode.Tag).Name + " - 编辑报表";
         frm.ShowDialog();
         frm.Dispose();
         LoadQuickReports();
     }
 }