private void RaiseDialogShow(DialogShowEventArgs arguments) { if (null != DialogShow) { DialogShow(this, arguments); } }
private void onDialogShow(object sender, DialogShowEventArgs e) { if (e.Action.Equals("add")) // 新增 { clearInput(); } else { IDao dao = DaoFactory.GetDao("DaoBizContract"); DataTable dt = dao.SelectByPK(e.Id); if (null != dt && dt.Rows.Count > 0) { if (e.Action.Equals("edit")) // 编辑 { hidID["ID"] = e.Id; FrmUtil.FillData(dt, this); setReadOnly(true); } else if (e.Action.Equals("renew")) { if (hidID.Contains("ID")) { hidID.Remove("ID"); } FrmUtil.FillData(dt, this); renew(); setReadOnly(false); } } else { clearInput(); } } }
private void RaiseDialogShow(DialogShowEventArgs arguments) { if (null != DialogShow) DialogShow(this, arguments); }
private void RaiseDialogShow(DialogType type, bool suppressed, bool modal, IEnumerable<KeyValuePair<string, object>> arguments) { DialogShowEventArgs args = new DialogShowEventArgs(type, suppressed, modal, arguments); RaiseDialogShow(args); }
private void RaiseDialogShow(DialogType type, bool suppressed, bool modal, IEnumerable <KeyValuePair <string, object> > arguments) { DialogShowEventArgs args = new DialogShowEventArgs(type, suppressed, modal, arguments); RaiseDialogShow(args); }