public static void MyShow(string seller) { EtWindow.ShowSameNickOneInstance <WndBuyerNoteMgr>(seller, () => { var wnd = new WndBuyerNoteMgr(); wnd.Seller = seller; return(wnd); }, null, false); }
public static void Create(string sellerMain, Window owner, Action onClosed) { WndFavoriteNoteEditor wndFavoriteNoteEditor = EtWindow.ShowSameShopOneInstance <WndFavoriteNoteEditor>(sellerMain, new Func <WndFavoriteNoteEditor>(() => { return(new WndFavoriteNoteEditor(sellerMain)); }), owner); wndFavoriteNoteEditor.Closed += (s, e) => { if (onClosed != null) { onClosed(); } }; }
public static void MyShow(string seller, WndAssist owner = null, OptionEnum showPage = OptionEnum.Unknown, Action uiCallback = null) { Util.Assert(!string.IsNullOrEmpty(seller)); var wndOp = EtWindow.ShowSameNickOneInstance <WndOption>(seller, () => { return(new WndOption(seller)); }, owner, true); if (uiCallback != null) { wndOp.Closed += (s, e) => { if (uiCallback != null) { uiCallback(); } }; } if (showPage > OptionEnum.Unknown) { wndOp.ShowPage(showPage); } }