示例#1
0
        public void StartFile(string fullName)
        {
            Process process = new Process();
            process.StartInfo.WorkingDirectory =
                System.IO.Path.GetDirectoryName(fullName);
            process.StartInfo.UseShellExecute = true;
            process.StartInfo.FileName = fullName;
            process.Start();

            LastStartedFilesManager lsfm =
                new LastStartedFilesManager();
            lsfm.AddlastStartedFile(fullName);
        }
示例#2
0
 private void btnClearLastFiles_Click(object sender, RoutedEventArgs e)
 {
     LastStartedFilesManager lsfm = new LastStartedFilesManager();
     lsfm.Clear();
     cmLastStartedFiles.IsOpen = false;
 }