Esempio n. 1
0
 private void button7_Click(object sender, EventArgs e)
 {
     using (ReadQrForm qrForm = new ReadQrForm())
     {
         if (qrForm.ShowDialog() == DialogResult.OK)
         {
             DgvTools.AddReelToTrash(qrForm.nc12, qrForm.id, dataGridViewLedTrash, ref currentMstOrder);
             DgvTools.MarkRemovedRow(qrForm.nc12, qrForm.id, dataGridViewMstLedReels, Color.FromArgb(255, 44, 62, 80), Color.FromArgb(255, 189, 195, 199));
         }
     }
 }
Esempio n. 2
0
 private void button6_Click(object sender, EventArgs e)
 {
     using (ReadQrForm qrForm = new ReadQrForm())
     {
         bool alreadyExist = false;
         if (qrForm.ShowDialog() == DialogResult.OK)
         {
             foreach (var reel in currentMstOrder.LedReels)
             {
                 if (reel.NC12 == qrForm.nc12 & reel.ID == qrForm.id)
                 {
                     MessageBox.Show("Ta rolka została już dodana!");
                     alreadyExist = true;
                     break;
                 }
             }
             if (!alreadyExist)
             {
                 DgvTools.AddReelToGrid(qrForm.nc12, qrForm.id, dataGridViewMstLedReels, ref currentMstOrder);
             }
         }
     }
 }