示例#1
0
文件: FmMDI.cs 项目: ywscr/MessageTip
 private void btnShow_Click(object sender, EventArgs e)
 {
     MessageTip.ShowOk(txbText.Text);
     //ThreadPool.QueueUserWorkItem(obj => MessageTip.ShowOk("并行测试"));
     //ThreadPool.QueueUserWorkItem(obj => MessageTip.ShowOk("并行测试"));
     //ThreadPool.QueueUserWorkItem(obj => MessageTip.ShowOk("并行测试"));
     //ThreadPool.QueueUserWorkItem(obj => MessageTip.ShowOk("并行测试"));
     //ThreadPool.QueueUserWorkItem(obj => MessageTip.ShowOk("并行测试"));
 }
示例#2
0
 private void btnShow_Click(object sender, EventArgs e)
 {
     try
     {
         MessageTip.Show(txbMultiline.Text, _style);
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.Message);
     }
 }
示例#3
0
        private void btnShow_Click(object sender, EventArgs e)
        {
            if (txbIcon.TextLength != 0 && !File.Exists(txbIcon.Text))
            {
                MessageBox.Show("图片不存在!");
                return;
            }

            try
            {
                MessageTip.Show(txbText.Text,
                                txbIcon.TextLength == 0 ? null : Image.FromFile(txbIcon.Text));
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message);
            }
        }
示例#4
0
 private void btnEnter_Click(object sender, EventArgs e)
 {
     MessageTip.Show((ToolStripItem)sender, txbMultiline.Text);
 }
示例#5
0
 private void btnShowInPanel_Click(object sender, EventArgs e)
 {
     MessageTip.Show(panel1, txbMultiline.Text);
 }
示例#6
0
 private void btnError_Click(object sender, EventArgs e)
 {
     MessageTip.ShowError(txbMultiline.Text);
 }
示例#7
0
 private void btnWarning_Click(object sender, EventArgs e)
 {
     MessageTip.ShowWarning(txbMultiline.Text);
 }
示例#8
0
 private void btnOk_Click(object sender, EventArgs e)
 {
     MessageTip.ShowOk(txbText.Text);
 }
示例#9
0
 private void btnTestItem_Click(object sender, EventArgs e)
 {
     MessageTip.ShowOk((ToolStripItem)sender, txbText.Text);
 }
示例#10
0
 private void btnError_Click(object sender, EventArgs e)
 {
     //MessageTip.ShowError(txbText.Text);
     MessageTip.Show(txbText.Text, TipIcon.Error);
 }
示例#11
0
 private void btnWarning_Click(object sender, EventArgs e)
 {
     //MessageTip.ShowWarning(txbText.Text);
     MessageTip.Show(txbText.Text, TipIcon.Warning);
 }
示例#12
0
 private void btnOk_Click(object sender, EventArgs e)
 {
     //MessageTip.ShowOk(txbText.Text);
     MessageTip.Show(txbText.Text, TipIcon.Ok);
 }