Exemplo n.º 1
0
 private void servicingGridView_CellClick(object sender, DataGridViewCellEventArgs e)
 {
     if ((servicingGridView.RowCount >= 0) && (e.RowIndex >= 0))
     {
         DataGridViewRow row = servicingGridView.Rows[e.RowIndex];
         tempcin = row.Cells[3].Value.ToString();
         if (e.ColumnIndex == 9)
         {
             MetroMessageBox.Show(this, "" + row.Cells[8].Value.ToString() + "", "Assignee's Report", MessageBoxButtons.OK, MessageBoxIcon.Question);
         }
         else if (e.ColumnIndex == 11)
         {
             MetroMessageBox.Show(this, "" + row.Cells[10].Value.ToString() + "", "Needed Materials / Remarks", MessageBoxButtons.OK, MessageBoxIcon.Question);
         }
         else if (e.ColumnIndex == 13)
         {
             MetroMessageBox.Show(this, "" + row.Cells[12].Value.ToString() + "", "FOR RESCHED", MessageBoxButtons.OK, MessageBoxIcon.Question);
         }
         else if (e.ColumnIndex == 15)
         {
             MetroMessageBox.Show(this, "" + row.Cells[14].Value.ToString() + "", "FOR COSTING", MessageBoxButtons.OK, MessageBoxIcon.Question);
         }
         else if (e.ColumnIndex == 17)
         {
             MetroMessageBox.Show(this, "" + row.Cells[16].Value.ToString() + "", "FOR QUOTATION / ADDITIONAL", MessageBoxButtons.OK, MessageBoxIcon.Question);
         }
         else if (e.ColumnIndex == 4)
         {
             NSF = new newSrevicingFRM();
             NSF.ShowDialog();
         }
     }
 }
Exemplo n.º 2
0
 private void callinGRID_CellClick(object sender, DataGridViewCellEventArgs e)
 {
     if ((callinGRID.RowCount >= 0) && (e.RowIndex >= 0))
     {
         DataGridViewRow row = callinGRID.Rows[e.RowIndex];
         tempcin = row.Cells[3].Value.ToString();
         MessageBoxIcon icon = MessageBoxIcon.Question;
         if (e.ColumnIndex == 11)
         {
             MetroMessageBox.Show(this, "" + row.Cells[10].Value.ToString() + "", "Screens Concern", MessageBoxButtons.OK, icon);
         }
         else if (e.ColumnIndex == 13)
         {
             MetroMessageBox.Show(this, "" + row.Cells[12].Value.ToString() + "", "Windows Concern", MessageBoxButtons.OK, icon);
         }
         else if (e.ColumnIndex == 15)
         {
             MetroMessageBox.Show(this, "" + row.Cells[14].Value.ToString() + "", "Doors Concern", MessageBoxButtons.OK, icon);
         }
         else if (e.ColumnIndex == 17)
         {
             MetroMessageBox.Show(this, "" + row.Cells[16].Value.ToString() + "", "Other Concern", MessageBoxButtons.OK, icon);
         }
         else if (e.ColumnIndex == 20)
         {
             NSF = new newSrevicingFRM();
             NSF.ShowDialog();
         }
         else
         {
             return;
         }
     }
     else
     {
         return;
     }
 }
Exemplo n.º 3
0
 public ServicingClass(Form1 frm1val, newSrevicingFRM nsfval)
 {
     frm1 = frm1val;
     nsf  = nsfval;
 }