예제 #1
0
 //Changing Reorder Level Form Button
 private void btnReorderChangeLevel_Click(object sender, EventArgs e)
 {
     if (dgvBool == true && dgvReorder.CurrentRow.Selected == true)
     {
         foreach (var product in _report.Reorders)
         {
             if (product.Product.Name == dgvReorder.CurrentRow.Cells[1].Value.ToString())
             {
                 frmReorderChangeLevels _myForm = new frmReorderChangeLevels(product, _myAccessToken);
                 _myForm.ShowDialog();
                 populateDGV();
             }
         }
     }
     else
     {
         MessageBox.Show("To select a Product, click on the Row Header OR\n Go! to start the report.",
                         "No Product Selected!", MessageBoxButtons.OK, MessageBoxIcon.Error);
     }
 }
예제 #2
0
 //Changing Reorder Level Form Button
 private void btnReorderChangeLevel_Click(object sender, EventArgs e)
 {
     if (dgvBool == true && dgvReorder.CurrentRow.Selected == true)
     {
         foreach (var product in _report.Reorders)
         {
             if (product.Product.Name == dgvReorder.CurrentRow.Cells[1].Value.ToString())
             {
                 frmReorderChangeLevels _myForm = new frmReorderChangeLevels(product, _myAccessToken);
                 _myForm.ShowDialog();
                 populateDGV();
             }
         }
     }
     else
     {
         MessageBox.Show("To select a Product, click on the Row Header OR\n Go! to start the report.",
             "No Product Selected!", MessageBoxButtons.OK, MessageBoxIcon.Error);
     }
 }