Exemplo n.º 1
0
        private void button_clearSpilth_Click(object sender, EventArgs e)
        {
            DialogResult res = MessageBox.Show("是否保留未使用的文本?", "提醒", MessageBoxButtons.YesNoCancel, MessageBoxIcon.Warning);

            if (res == DialogResult.OK)
            {
                textsManager.clearSpilth(false);
            }
            else if (res == DialogResult.No)
            {
                textsManager.clearSpilth(true);
            }
            refreshUsedTime();
        }