コード例 #1
0
        private void ChildWindow_Loaded(object sender, RoutedEventArgs e)
        {
            _rang = 1;
            UcRechercheParReference routeNumber = new UcRechercheParReference(_rang, lstidCentre, this);

            _ReferenceClient = routeNumber;
            //content.Header = "Search by contract number";
            content.Header   = "";
            groupBox1.Header = Galatee.Silverlight.Resources.Langue.gbo_RechercheRefClient;
            container.Child  = _ReferenceClient;
        }
コード例 #2
0
        private void RadioButton_Click(object sender, RoutedEventArgs e)
        {
            if (routeNumb.IsChecked == true || amount.IsChecked == true || name.IsChecked == true)
            {
                if (amount.IsChecked == true)
                {
                    _rang            = 2;
                    content.Header   = "";
                    groupBox1.Header = Galatee.Silverlight.Resources.Langue.gbo_RechercheMontant;
                }
                if (name.IsChecked == true)
                {
                    _rang            = 3;
                    content.Header   = "";
                    groupBox1.Header = Galatee.Silverlight.Resources.Langue.gbo_RechercheNom;
                }
                if (routeNumb.IsChecked == true)
                {
                    _rang            = 1;
                    content.Header   = "";
                    groupBox1.Header = Galatee.Silverlight.Resources.Langue.gbo_RechercheRefClient;
                }
                UcRechercheParReference routeNumber = new UcRechercheParReference(_rang, lstidCentre, this);
                _ReferenceClient = routeNumber;
                _billPeriod      = null;
                container.Child  = _ReferenceClient;
            }

            if (bill.IsChecked == true)
            {
                UcRechercheParNumFacture searchuc = new UcRechercheParNumFacture(this);
                _billPeriod      = searchuc;
                _ReferenceClient = null;
                content.Header   = "";
                groupBox1.Header = Galatee.Silverlight.Resources.Langue.gbo_RechercheNumFact;
                container.Child  = _billPeriod;
            }
        }