Esempio n. 1
0
        private void btnNewEstimate_Click(object sender, EventArgs e)
        {
            EstimateGenerator estimategenerator = new EstimateGenerator();

            estimategenerator.onclose += GenerateEstimateList;
            estimategenerator.Show(this);
        }
Esempio n. 2
0
 private void dgvEstimate_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
 {
     if (dgvEstimate.Columns[e.ColumnIndex].Name != "Action" && e.RowIndex != -1)
     {
         if (UserTools._IsEdit)
         {
             int               rowindex          = dgvEstimate.SelectedCells[0].RowIndex;
             string            estimateid        = dgvEstimate.Rows[rowindex].Cells["Estimateid"].Value.ToString();
             string            Vaildupto         = dgvEstimate.Rows[rowindex].Cells["ExpiryDate"].Value.ToString();
             EstimateGenerator estimategenerator = new EstimateGenerator(estimateid, Vaildupto);
             estimategenerator.onclose += GenerateEstimateList;
             estimategenerator.Show(this);
         }
         else
         {
             MessageBox.Show("Permission Denied", "Edit", MessageBoxButtons.OK, MessageBoxIcon.Stop);
         }
     }
 }