Beispiel #1
0
        public static bool Show(string info, string title = "选择", string btn1Text = "确定", string btn2Text = "取消")
        {
            ChooseBox chooseBox = new ChooseBox(title, info, btn1Text, btn2Text);

            chooseBox.ShowDialog();
            return(choose);
        }
Beispiel #2
0
        // 关闭
        private void Close_Click(object sender, RoutedEventArgs e)
        {
            if (!ChooseBox.Show("确认退出?"))
            {
                return;
            }

            Close();
        }