Esempio n. 1
0
 public frmProgram()
 {
     InitializeComponent();
     recorderPath = AppDomain.CurrentDomain.BaseDirectory + DateTime.Now.ToString("MMddHHmmss") + ".mp4";
     //初始化所有桌面程序
     programList = WindowApi.GetAllDesktopWindows().Where(x => !string.IsNullOrEmpty(x.szWindowName)).ToList();
     this.cboProgram.DataSource = programList.Select(x => x.szWindowName).ToList();
 }