예제 #1
0
        public void ShowSetting()
        {
            txtCategory1.Text = "";
            txtCategory2.Text = "";
            txtCategory3.Text = "";

            txtLittle.Text     = "";
            txtBigWithout.Text = "";
            txtWith.Text       = "";

            txtCategory1.Text = SetService.FindByCategory(cmbCategoryOrg.SelectedItem.ToString()).GetCategory1().ToString();
            txtCategory2.Text = SetService.FindByCategory(cmbCategoryOrg.SelectedItem.ToString()).GetCategory2().ToString();
            txtCategory3.Text = SetService.FindByCategory(cmbCategoryOrg.SelectedItem.ToString()).GetCategory3().ToString();

            txtLittle.Text     = SetService.FindByCategory(cmbCategoryOrg.SelectedItem.ToString()).GetLittleOperation().ToString();
            txtBigWithout.Text = SetService.FindByCategory(cmbCategoryOrg.SelectedItem.ToString()).GetBigOperationWithout().ToString();
            txtWith.Text       = SetService.FindByCategory(cmbCategoryOrg.SelectedItem.ToString()).GetBigOperationWith().ToString();
        }
예제 #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) { }
        }