Beispiel #1
0
        private void SettingForm_Activated(object sender, EventArgs e)
        {
            try
            {
                CatService.ReadCategory();
            }
            catch (Exception ex) { }
            try
            {
                SetService.ReadSettingLab();
            }
            catch (Exception ex) { }

            cmbCategoryOrg.Items.Clear();

            foreach (Category o in CatService.GetCategories())
            {
                cmbCategoryOrg.Items.Add(o.GetName());
            }
        }
Beispiel #2
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) { }
        }