|
老师,没找到隐藏文本的命令,所以作业先交了,CA-120B
private void Ribbon1_Load(object sender, RibbonUIEventArgs e)
{
}
private void checkBox1_Click(object sender, RibbonControlEventArgs e)
{
if (checkBox1.Checked)
{
//打开YY软件
System.Diagnostics.Process.Start("yy://pd-[sid=91283328&subid=2175343697]");
}
else
{
//打开网页版YY
System.Diagnostics.Process.Start("http://yy.com/91283328/2175343697?from=");
}
}
private void button1_Click(object sender, RibbonControlEventArgs e)
{
try
{
System.Diagnostics.Process.Start("notepad.exe");
}
catch (Exception)
{
System.Windows.Forms.MessageBox.Show("无法打开,请检查文件位置");
}
}
}
|
评分
-
查看全部评分
|