private void SaleTypeUpdate_Load(object sender, EventArgs e) { //this.WindowState = FormWindowState.Maximized; string cname = ""; WorkTypeQuery.GetInfo(ref id, ref cname); if (cname != "") { textEditOld.Text = cname; } }
private void barButtonItem修改_ItemClick(object sender, ItemClickEventArgs e) { int id = 0; string cname = ""; WorkTypeQuery.GetInfo(ref id, ref cname); if (id != 0) { //SaleTypeUpdate Frm = SaleTypeUpdate.GetInstance(); WorkTypeUpdate Frm = new WorkTypeUpdate(); Frm.TopLevel = false; Frm.Parent = this; Frm.Show(); Frm.BringToFront(); } }