public static transactionView GetForm(string formName) { string cacheKey = typeof(transactionView).FullName + (formName == null || formName.Trim() == "" ? "" : "-" + formName); transactionView form = (transactionView)common.Data.dataCache.Find(cacheKey); if (form != null && !form.IsDisposed) return form; form = new transactionView(); common.Data.dataCache.Add(cacheKey, form); return form; }
public static transactionView GetForm(string formName) { string cacheKey = typeof(transactionView).FullName + (formName == null || formName.Trim() == "" ? "" : "-" + formName); transactionView form = (transactionView)common.Data.dataCache.Find(cacheKey); if (form != null && !form.IsDisposed) { return(form); } form = new transactionView(); common.Data.dataCache.Add(cacheKey, form); return(form); }
protected void ViewTransaction() { if (transactionsSource.Current == null) { return; } databases.baseDS.transactionsRow row = (databases.baseDS.transactionsRow)((DataRowView)transactionsSource.Current).Row; transactionView form = GetViewForm(); form.SetEditData(row); form.LockEdit(true); form.ShowDialog(); }