private void BtnSelectKF_Click(object sender, EventArgs e) { using (客房选择Form form = new 客房选择Form(客房筛选.客房出租)) { var result = form.ShowDialog(this); if (result == System.Windows.Forms.DialogResult.OK) { kf = form.selectedKF; uC客房详细1.客房BindingSource.DataSource = kf; kryptonHeader1.Values.Heading = kf.源房.房名; kryptonHeader1.Values.Description = kf.命名; } } }
private void llbKF_LinkClicked(object sender, EventArgs e) { using (客房选择Form form = new 客房选择Form(context, 客房筛选.客房收租)) { var result = form.ShowDialog(this); if (result == System.Windows.Forms.DialogResult.OK) { if (kf != form.selectedKF) { kf = form.selectedKF; ChangeKF(kf.ID); } } } }
private void BtnSelectKF_Click(object sender, EventArgs e) { using (客房选择Form form = new 客房选择Form(客房筛选.客房收租)) { var result = form.ShowDialog(this); if (result == System.Windows.Forms.DialogResult.OK) { if (kf != form.selectedKF) { Main.context.客房租金明细.DeleteObject(collectRent); kf = form.selectedKF; kryptonHeader1.Values.Heading = kf.源房.房名; kryptonHeader1.Values.Description = kf.命名; BindingData(); } } } }