Esempio n. 1
0
        /// <summary>
        /// 静态方法 模拟MESSAGEBOX.Show方法
        /// </summary>
        /// <param name="title">标题</param>
        /// <param name="msg">消息</param>
        /// <returns></returns>
        public static bool?Show(string title, string weight)
        {
            var msgBox = new ModalBoxX();

            msgBox.Title      = title;
            msgBox.InitWeight = weight;
            return(msgBox.ShowDialog());
        }
Esempio n. 2
0
        //初始权重
        private void Init_Weight(object sender, RoutedEventArgs e)
        {
            string initWeight = ConfigUtil.Get("initWeight");

            ModalBoxX.Show("初始权重", initWeight);
        }