Beispiel #1
0
 // Removes Associated Part
 private void NewAssociationRemover_Click(object sender, RoutedEventArgs e)
 {
     for (int i = 0; i < NewAssociatedData.Rows.Count; i++)
     {
         if ((bool)NewAssociatedData.Rows[i].ItemArray[0] == true)
         {
             if (NewWorkingProduct.DeleteAssociatedPart(i) == true)
             {
                 NewAssociatedData.Rows[i].Delete();
             }
         }
     }
 }
        // Removes Associated Part
        private void EditedAssociationRemover_Click(object sender, RoutedEventArgs e)
        {
            for (int i = 0; i < EditAssociatedData.Rows.Count; i++)
            {
                if ((bool)EditAssociatedData.Rows[i].ItemArray[0] == true)
                { // Fix Me
                    if (EditWorkingProduct.DeleteAssociatedPart(i) == true)
                    {
                        EditAssociatedData.Rows[i].Delete();
                    }

                    Console.WriteLine($"Removed Part {i}");
                }
            }
        }