//显示说明弹框
        public static void showExplainAlertUI()
        {
            ExplainAlertUI explainAlertUI = new ExplainAlertUI();
            //初始化窗体
            Window window = initWindow("explain", 450, 700);

            //设置window窗体内容
            window.Content = explainAlertUI;
            //显示窗体
            window.ShowDialog();
        }
Пример #2
0
        //显示说明弹框
        public static void showExplainAlertUI(string type)
        {
            string title = "";

            if (type == "host")
            {
                title = "Host Mapping";
            }
            else if (type == "file")
            {
                title = "File Mapping";
            }
            else if (type == "https")
            {
                title = "Https To Http";
            }
            else if (type == "header")
            {
                title = "Header Replace";
            }
            else if (type == "tools")
            {
                title = "Tools";
            }
            else if (type == "console")
            {
                title = "Console Log";
            }
            ExplainAlertUI explainAlertUI = new ExplainAlertUI(type);
            //初始化窗体
            Window window = initWindow(title, 450, 700);

            //设置window窗体内容
            window.Content = explainAlertUI;
            //显示窗体
            window.ShowDialog();
        }