Ejemplo n.º 1
0
        public void ChoisePrice()
        {
            SettingLabService SetService = new SettingLabService();

            SetService.ReadSettingLab();
            try
            {
                switch (Typ)
                {
                case TypeResearch.Category1:
                    this.price = SetService.FindByCategory(Cat.GetName()).GetCategory1();
                    break;

                case TypeResearch.Category2:
                    this.price = SetService.FindByCategory(Cat.GetName()).GetCategory2();
                    break;

                case TypeResearch.Category3:
                    this.price = SetService.FindByCategory(Cat.GetName()).GetCategory3();
                    break;

                case TypeResearch.LittleOperation:
                    this.price = SetService.FindByCategory(Cat.GetName()).GetLittleOperation();
                    break;

                case TypeResearch.BigOperationWithout:
                    this.price = SetService.FindByCategory(Cat.GetName()).GetBigOperationWithout();
                    break;

                case TypeResearch.BigOperationWith:
                    this.price = SetService.FindByCategory(Cat.GetName()).GetBigOperationWith();
                    break;

                default:
                    this.price = 0;
                    break;
                }
            }
            catch (Exception ex) { }
        }
Ejemplo n.º 2
0
 public SettingForm(MainForm f)
 {
     InitializeComponent();
     CatService = new CategoryService();
     SetService = new SettingLabService();
 }