private void TempWorkerPriceUpdate_Load(object sender, EventArgs e) { BindType(); TempEmpExpenseQuery.GetInfo(ref id, ref ctype, ref expense, ref note); if (id != "") { textEditExpense.Text = expense; textEditNote.Text = note; comboBoxType.SelectedIndex = -1; comboBoxType.SelectedValue = ctype; } }
private void barButtonItem修改_ItemClick(object sender, ItemClickEventArgs e) { string id = "", ctype = "", expense = "", note = ""; TempEmpExpenseQuery.GetInfo(ref id, ref ctype, ref expense, ref note); if (id != "") { TempEmpExpenseUpdate Frm = new TempEmpExpenseUpdate(); Frm.TopLevel = false; Frm.Parent = this; Frm.Show(); Frm.BringToFront(); } }