private void SetAppFontSize() { var appWindows = WindowEx.GetAppWindows <WndAssist>(); foreach (WndAssist wndAssist in appWindows.xSafeForEach()) { wndAssist.FontSize = Params.Other.FontSize; } }
public static void Close(string closeKey) { var wnds = WindowEx.GetAppWindows <WndTrayTip>(); if (wnds.xCount() > 0) { var wnd = wnds.FirstOrDefault(k => k.Tag == closeKey); if (wnd != null) { wnd.Close(); } } }
public static T GetMainNickSameWindow <T>(string seller) where T : EtWindow { List <T> appWindows = WindowEx.GetAppWindows <T>(); foreach (T t in appWindows.xSafeForEach <T>()) { if (TbNickHelper.IsSameShopAccount(t.Seller, seller)) { return(t); } } return(default(T)); }
public static T GetSubNickSameWindow <T>(string seller) where T : EtWindow { List <T> appWindows = WindowEx.GetAppWindows <T>(); foreach (T t in appWindows.xSafeForEach <T>()) { if (t.Seller == seller) { return(t); } } return(default(T)); }