Example #1
0
        // Popup Form that prevents the parent form from being selected
        public static void ShowDialog(string title, string text, Primary owner)
        {
            text = text.Replace("\n", "\n\r\n");
            ScrollMessageBox scr = new ScrollMessageBox(title, text);

            scr.Visible = false;
            scr.ShowDialog(owner);
        }
Example #2
0
        // Popup specific to the terms of service because we want to handle that slightly differently
        public static void DisplayToS(string title, string text, Primary owner)
        {
            ScrollMessageBox scr = new ScrollMessageBox($@"Terms Of Service Update: {title}", text.Replace("\n", "\n\r\n"));

            scr.Visible        = false;
            scr.tos            = text;
            scr.reject.Visible = true;
            scr.accept.Text    = "Accept ToS?";
            scr.ShowDialog(owner);
        }