コード例 #1
0
        private void metroButton1_Click(object sender, EventArgs e)
        {
            Company company = new Company();

            company.Name      = companynameUpdateTextBox.Text;
            company.Salary    = salaryUpdateTextBox.Text;
            company.Work_type = workTypeUpdateTextBox.Text;
            company.Vacancy   = vacancyUpdateTextBox.Text;
            company.Id        = Convert.ToInt32(id);

            CompanyServices companyservices = new CompanyServices();

            if (companyservices.Update(company) == 1)
            {
                MessageBox.Show("Successfully Updated");
            }
            else
            {
                MessageBox.Show("Update Failed");
            }

            CompanyUpdate companyupdate = new CompanyUpdate();

            this.Hide();
            companyupdate.Closed += (s, args) => this.Close();
            companyupdate.Show();
        }
コード例 #2
0
        private void CompanyUpdatebutton_Click(object sender, EventArgs e)
        {
            CompanyUpdate companyupdate = new CompanyUpdate();

            this.Hide();
            companyupdate.Closed += (s, args) => this.Close();
            companyupdate.Show();
        }