doctorraz Posted October 12, 2022 Report Share Posted October 12, 2022 (edited) Собственно пытаюсь повторить такое: само сообщение нотифай со значком UIntPtr notifi = McNotificator.CreateMessage("Не найдена лицензия", NotificationEnumMgd.neHint); а вот как подсунуть гиперссылку... нашел такое, но куда это???? IMcNotificatorSysLinkWindow link = McNotificator.CreateSysLink("https://forum.nanocad.ru/index.php?/discover/unread/&stream_date_type=relative&before", MainCommand); но как скрестить коня и трепетную лань пока не понял... ------ еще в нано есть и такое но этот вариант совсем не вариант ------------------- собственно вопрос, как повторить первую картинку поста? Как расширенно управлять нотифай? добавлено через 2 минуты мой левел слишком низок, и я недостаточно копал.. Кто умеет, задайте пожалуйста направление, куда копать Edited January 18 by doctorraz Quote Link to comment Share on other sites More sharing options...
sea Posted October 13, 2022 Report Share Posted October 13, 2022 IMcNotificatorSysLinkWindow link = McNotificator.CreateSysLink("Text <A>https://forum.nanocad.ru/index.php?/discover/unread/&stream_date_type=relative&before</A> text", OnLink); McNotificator.CreateMessage("Tip", NotificationEnumMgd.neHint, UIntPtr.Zero, link, link); 2 1 Quote Link to comment Share on other sites More sharing options...
doctorraz Posted October 13, 2022 Author Report Share Posted October 13, 2022 @sea спасибо! ----------------- коль в Action ничего передать нельзя Спойлер using System; using System.Diagnostics; using Multicad.AplicationServices; using Rtm = Teigha.Runtime; namespace drz.Test { class NotifaiMessag { private string sURL { get; set; } public NotifaiMessag(string sTextMsg, string sTextURL, NotificationEnumMgd nfe, string _sURL) { sURL = _sURL; string sURLcomplit = sTextURL + " " + "<A>" + _sURL + "</A>"; IMcNotificatorSysLinkWindow link = McNotificator.CreateSysLink ( sURLcomplit, OnLink ); var noti = McNotificator.CreateMessage(sTextMsg, nfe, UIntPtr.Zero, link, link); //noti = McNotificator.CreateMessage(sTextMsg, nfe, UIntPtr.Zero, link,link); } public void OnLink() { Process.Start(sURL); } } class CMD { [Rtm.CommandMethod("нотифай", Rtm.CommandFlags.Session)] public void Noti() { Action aCom;//КАК ПЕРЕДАТЬ??? string sTextMsg = "Text"; string sTextURL = "URL"; NotificationEnumMgd nfe = NotificationEnumMgd.neSimple; string sURL = @"https://forum.nanocad.ru/index.php?/discover/unread/&stream_date_type=relative&before"; NotifaiMessag noti = new NotifaiMessag(sTextMsg, sTextURL, nfe, sURL); } } } в принципе разные OnClick можно реализовать перегрузками класса, но всежэж интересует вопрос... можно ли передать имя Action(метода) в класс? 1 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.