public Show_Company(int level, string id) { InitializeComponent(); Calculate_Rate calculate_Rate = new Calculate_Rate(level, id); result.Content = calculate_Rate.Result(); }
private void Button_Click(object sender, RoutedEventArgs e) { if (lv == 0) { MessageBox.Show("사용자 정보를 입력하세요"); } else { Company company = new Company(); company = (Company)lvControl.Items[lvControl.SelectedIndex]; CompanyT companyT = new CompanyT(); companyT.Insert_company_information(company.Id, 0); Calculate_Rate calculate_Rate = new Calculate_Rate(lv, company.Id); MessageBox.Show(calculate_Rate.Result()); //Show_Company show_Company = new Show_Company(lv, company.Id); //show_Company.Show(); } }