private void button4_Click(object sender, RoutedEventArgs e) { try { List <TestUC> testUCs = new List <TestUC>(); UIElementCollection uIElementCollection = WrapPanel1.Children; foreach (UIElement uIElement in uIElementCollection) { if (uIElement is TestUC) { TestUC testUC = (TestUC)uIElement; if ((bool)testUC.CheckBox1.IsChecked) { testUCs.Add(testUC); } } } foreach (TestUC testUC1 in testUCs) { WrapPanel1.Children.Remove(testUC1); } } catch (Exception ex) { MessageBox.Show(ex.Message); } }
internal void AddUC() { TestUC testUC = new TestUC(); WrapPanel1.Children.Add(testUC); WrapPanel1.Children.Remove(add); WrapPanel1.Children.Add(add); }
internal static TestUC Instance(IBridge iBridge) { if (statusForm == null) { statusForm = new FiscalInfoUC(); bridge = iBridge; } return statusForm; }
internal static TestUC Instance(IBridge iBridge) { if (statusForm == null) { statusForm = new FiscalInfoUC(); bridge = iBridge; } return(statusForm); }
internal static TestUC Instance(IBridge iBridge) { if (saleForm == null) { saleForm = new UtililtyFuncsUC(); bridge = iBridge; } return saleForm; }
internal static TestUC Instance(IBridge iBridge) { if (saleForm == null) { saleForm = new UtililtyFuncsUC(); bridge = iBridge; } return(saleForm); }
private void button3_Click(object sender, RoutedEventArgs e) { try { for (int i = 0; i < WrapPanel1.Children.Count; i++) { if (WrapPanel1.Children[i] is TestUC) { TestUC testUC = (TestUC)WrapPanel1.Children[i]; testUC.CheckBox1.Visibility = Visibility.Visible; } } } catch (Exception ex) { MessageBox.Show(ex.Message); // Afficher une erreur } }
internal static TestUC Instance(IBridge iBridge) { if (saleForm == null) { bridge = iBridge; saleForm = new SaleUC(); } return saleForm; }
internal static TestUC Instance(IBridge iBridge) { if (serviceForm == null) { serviceForm = new ServiceUC(); bridge = iBridge; } return serviceForm; }
internal static TestUC Instance(IBridge iBridge) { if (programForm == null) { programForm = new ProgramUC(); bridge = iBridge; } return programForm; }