private void editNode(TreeListNode node) { if (node.Level == 1) { Frm_region frm_1 = new Frm_region(); frm_1.swapdata["rg001"] = node.GetValue("RG001"); frm_1.swapdata["dataset"] = tg_ds; frm_1.ShowDialog(); frm_1.Dispose(); } }
/// <summary> /// 新建墓区 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void barButtonItem1_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e) { Frm_region frm_1 = new Frm_region(); ///传递数据 frm_1.swapdata["dataset"] = tg_ds; if (frm_1.ShowDialog() == DialogResult.OK) { Tools.msg(MessageBoxIcon.Information, "提示", "操作成功!"); } frm_1.Dispose(); }