Ejemplo n.º 1
0
        public static T ShowSameNickOneInstance <T>(string seller, Func <T> creater = null, Window owner = null, bool startUpCenterOwner = false) where T : EtWindow
        {
            T t = EtWindow.GetSubNickSameWindow <T>(seller);

            if (t == null)
            {
                if (creater == null)
                {
                    t = Activator.CreateInstance <T>();
                }
                else
                {
                    t = creater();
                }
                t.FirstShow(seller, owner, null, startUpCenterOwner);
            }
            else
            {
                t.xReShow();
            }
            return(t);
        }
Ejemplo n.º 2
0
        public static T ShowSameShopOneInstance <T>(string seller, Func <T> creater = null, Window owner = null) where T : EtWindow
        {
            T t = EtWindow.GetMainNickSameWindow <T>(seller);

            if (t == null)
            {
                if (creater == null)
                {
                    t = Activator.CreateInstance <T>();
                }
                else
                {
                    t = creater();
                }
                t.FirstShow(seller, owner, null, false);
            }
            else
            {
                t.xReShow();
            }
            return(t);
        }