Exemple #1
0
        public IDialog ShowDialog(string title, string url, ResultHandler callback, Size size, Panel container, IPageBrowser pageBrowser)
        {
            if (m_browser == null)
            {
                m_browser = pageBrowser;
            }

            if (this.Current == null)
            {
                if (container == null)
                {
                    container = m_browser.SelectedContent as Panel;
                }

                PopupBox box = new PopupBox(container, this);
                box.Closed = this.Closed;
                box.ShowDialog(title, url, callback, size, container, pageBrowser);
                return(box);
            }
            else
            {
                this.ShowDialog(title, url, true, size, callback);
                return(this);
            }
        }
Exemple #2
0
 public IDialog ShowDialog(string title, FrameworkElement content, ResultHandler callback, Size size, Panel container)
 {
     if (this.Current == null)
     {
         if (container == null)
         {
             container = m_browser.SelectedContent as Panel;
         }
         PopupBox box = new PopupBox(container, this);
         box.Closed = this.Closed;
         box.ShowDialog(title, content, callback, size, container);
         return(box);
     }
     else
     {
         this.ShowDialog(content, title, true, size, callback);
         return(this);
     }
 }