Exemple #1
0
 public static Window Show(Interface iface, string imlPath, bool modal = false)
 {
     lock (iface.UpdateMutex) {
         Window w = iface.AddWidget(imlPath) as Window;
         w.Modal = modal;
         return(w);
     }
 }
Exemple #2
0
        public static MessageBox ShowModal(Interface iface, Type msgBoxType, string message)
        {
            lock (iface.UpdateMutex) {
                MessageBox mb = new MessageBox(iface)
                {
                    Modal   = true,
                    MsgType = msgBoxType,
                    Message = message
                };

                iface.AddWidget(mb);
                return(mb);
            }
        }