예제 #1
0
 public static void MyShow(string seller)
 {
     EtWindow.ShowSameNickOneInstance <WndBuyerNoteMgr>(seller, () => {
         var wnd    = new WndBuyerNoteMgr();
         wnd.Seller = seller;
         return(wnd);
     }, null, false);
 }
예제 #2
0
        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();
                }
            };
        }
예제 #3
0
        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);
            }
        }