初始化上传
This commit is contained in:
30
常用工具集/ViewModels/04破解及系统相关/快速打开网络和共享中心ViewModel.cs
Normal file
30
常用工具集/ViewModels/04破解及系统相关/快速打开网络和共享中心ViewModel.cs
Normal file
@@ -0,0 +1,30 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Diagnostics;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using 常用工具集.Base;
|
||||
|
||||
namespace 常用工具集.ViewModel._04破解及系统相关
|
||||
{
|
||||
public class 快速打开网络和共享中心ViewModel : ViewModelBase
|
||||
{
|
||||
public DelegateCommand ButtonCmd { get; set; }
|
||||
|
||||
public 快速打开网络和共享中心ViewModel()
|
||||
{
|
||||
ButtonCmd = new DelegateCommand(ButtonCmdFunc);
|
||||
}
|
||||
|
||||
private void ButtonCmdFunc(object obj)
|
||||
{
|
||||
var p = new Process();
|
||||
p.StartInfo = new ProcessStartInfo(@"ncpa.cpl")
|
||||
{
|
||||
UseShellExecute = true
|
||||
};
|
||||
p.Start();
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user