Beispiel #1
0
        private void mnuSearch_Click(object sender, RoutedEventArgs e)
        {
            CComboConfig  cfg = (CComboConfig)comboTypeConfigs[ComboLoadType];
            CCriteriaBase cr  = (CCriteriaBase)Activator.CreateInstance(Type.GetType(cfg.ScreenCriteriaClassName));

            cr.SetActionEnable(false);
            criteriaInitFunc(cr);

            WinLookupSearch2 w = new WinLookupSearch2(cr, Caption);

            w.ShowDialog();

            if (w.IsOK)
            {
                this.selectedObject = w.ReturnedObj;
                updateGui(this);
            }
        }
Beispiel #2
0
        private void mnuSearch_Click(object sender, RoutedEventArgs e)
        {
            CLookupConfig cfg = (CLookupConfig)lookupTypeConfigs[Lookup];
            CCriteriaBase cr  = (CCriteriaBase)Activator.CreateInstance(Type.GetType(cfg.ScreenCriteriaClassName));

            cr.SetActionEnable(false);
            criteriaInitFunc(cr);

            String caption = Caption;

            if (Caption.Equals(""))
            {
                caption = lookupTypeToCaption(Lookup);
            }

            WinLookupSearch2 w = new WinLookupSearch2(cr, caption);

            w.ShowDialog();

            if (w.IsOK)
            {
                SelectedObject = w.ReturnedObj;
            }
        }