コード例 #1
0
        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);
            }
        }
コード例 #2
0
        internal void AddUC()
        {
            TestUC testUC = new TestUC();

            WrapPanel1.Children.Add(testUC);
            WrapPanel1.Children.Remove(add);
            WrapPanel1.Children.Add(add);
        }
コード例 #3
0
ファイル: FiscalInfoUC.cs プロジェクト: huginsdk/fpu
 internal static TestUC Instance(IBridge iBridge)
 {
     if (statusForm == null)
     {
         statusForm = new FiscalInfoUC();
         bridge = iBridge;
     }
     return statusForm;
 }
コード例 #4
0
 internal static TestUC Instance(IBridge iBridge)
 {
     if (statusForm == null)
     {
         statusForm = new FiscalInfoUC();
         bridge     = iBridge;
     }
     return(statusForm);
 }
コード例 #5
0
ファイル: UtililtyFuncsUC.cs プロジェクト: huginsdk/fpu
 internal static TestUC Instance(IBridge iBridge)
 {
     if (saleForm == null)
     {
         saleForm = new UtililtyFuncsUC();
         bridge = iBridge;
     }
     return saleForm;
 }
コード例 #6
0
ファイル: UtililtyFuncsUC.cs プロジェクト: oknyorukoglu/fpu
 internal static TestUC Instance(IBridge iBridge)
 {
     if (saleForm == null)
     {
         saleForm = new UtililtyFuncsUC();
         bridge   = iBridge;
     }
     return(saleForm);
 }
コード例 #7
0
 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
     }
 }
コード例 #8
0
ファイル: SaleUC.cs プロジェクト: huginsdk/fpu
 internal static TestUC Instance(IBridge iBridge)
 {
     if (saleForm == null)
     {
         bridge = iBridge;
         saleForm = new SaleUC();
     }
     return saleForm;
 }
コード例 #9
0
ファイル: ServiceUC.cs プロジェクト: huginsdk/fpu
 internal static TestUC Instance(IBridge iBridge)
 {
     if (serviceForm == null)
     {
         serviceForm = new ServiceUC();
         bridge = iBridge;
     }
     return serviceForm;
 }
コード例 #10
0
ファイル: ProgramUC.cs プロジェクト: huginsdk/fpu
 internal static TestUC Instance(IBridge iBridge)
 {
     if (programForm == null)
     {
         programForm = new ProgramUC();
         bridge = iBridge;
     }
     return programForm;
 }