private void DeleteSouler(string uid, SoulerItem item)
        {
            var result = DialogBoxes.PromptBox("删除Souler", "确认要删除该Souler么?");

            if (!result.IsCancel)
            {
                if (result.Data)
                {
                    settings.Soulers.Remove(uid);
                    panelSoulerList.Controls.Remove(item);
                }
            }
        }
Exemplo n.º 2
0
        private void Button9_Click(object sender, EventArgs e)
        {
            var result = DialogBoxes.PromptBox(tbTitle.Text, tbContent.Text, new string[] { "同意", "残忍拒绝" });

            DialogBoxes.MsgBox(tbTitle.Text, $"你的选择结果是:{result.Data.ToString()}");
        }