Esempio n. 1
0
        private void toolStripButton1_Click(object sender, EventArgs e)
        {
            FrmNewReport frmnr = new FrmNewReport(_currentUser.EmployeeID.ToString(), _currentUser.Name);

            frmnr.ShowDialog();
            LoadReports();
        }
Esempio n. 2
0
 private void toolStripButton6_Click(object sender, EventArgs e)
 {
     try
     {
         int          Rptid   = Convert.ToInt32(((DataTable)this.dataGridView1.DataSource).DefaultView.ToTable().Rows[this.dataGridView1.CurrentCell.RowIndex]["ReportID"]);
         string       RptName = ((DataTable)this.dataGridView1.DataSource).DefaultView.ToTable().Rows[this.dataGridView1.CurrentCell.RowIndex]["ReportName"].ToString();
         string       RptPath = ((DataTable)this.dataGridView1.DataSource).DefaultView.ToTable().Rows[this.dataGridView1.CurrentCell.RowIndex]["ReportPath"].ToString();
         FrmNewReport frmnr   = new FrmNewReport(_currentUser.EmployeeID.ToString(), _currentUser.Name, Rptid, RptName, RptPath);
         frmnr.ShowDialog();
         LoadReports();
     }
     catch { }
 }