コード例 #1
0
        public static bool MyShowDialog(List <Inline> message, string title, string showkey, Window owner = null, bool startUpCenterOwner = true, string okButtonText = null)
        {
            var isok = true;

            DispatcherEx.xInvoke(() =>
            {
                if (LocalParams.GetWndNotTipAgainNeedShow(showkey))
                {
                    var wnd = new WndNotTipAgain(message, title, showkey, okButtonText);
                    wnd.xSetOwner(owner);
                    wnd.xSetStartUpLocation(startUpCenterOwner);
                    var dlgRlt = wnd.ShowDialog();
                    isok       = dlgRlt.HasValue && dlgRlt.Value;
                }
            });
            return(isok);
        }
コード例 #2
0
        public static bool MyShowDialog(string message, string title = null, string showkey = null, Window owner = null, bool startUpCenterOwner = true)
        {
            var isok = true;

            DispatcherEx.xInvoke(() =>
            {
                if (!string.IsNullOrEmpty(showkey))
                {
                    if (LocalParams.GetWndNotTipAgainNeedShow(showkey))
                    {
                        var wnd = new WndNotTipAgain(message, title, showkey);
                        wnd.xSetOwner(owner);
                        wnd.xSetStartUpLocation(startUpCenterOwner);
                        var dlgRlt = wnd.ShowDialog();
                        isok       = dlgRlt.HasValue && dlgRlt.Value;
                    }
                }
            });
            return(isok);
        }