|
本帖最后由 faunus 于 2014-3-7 22:11 编辑
ca-111b
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Office.Tools.Ribbon;
namespace WordAddIn1
{
public partial class Ribbon1
{
private void Ribbon1_Load(object sender, RibbonUIEventArgs e)
{
}
private void button1_Click(object sender, RibbonControlEventArgs e)
{
System.Diagnostics.Process.Start("notepad.exe");
}
private void button2_Click(object sender, RibbonControlEventArgs e)
{
if (checkBox1.Checked)
{
System.Diagnostics.Process.Start("yy://pd-[sid=91283328&subid=769333290]");
}
else
{
System.Diagnostics.Process.Start("http://yy.com/91283328/91283328?from=769333290");
}
}
private void button3_Click(object sender, RibbonControlEventArgs e)
{
System.Diagnostics.Process.Start("CMD.exe" ,"/c taskkill /im notepad.exe");
}
}
}
|
评分
-
查看全部评分
|