Exemple #1
0
 public void Edit(DataGrid dataGrid)
 {
     if (Bat.IsBat(dataGrid, out Bat bat))
     {
         Process.Start("notepad.exe", bat.Path);
     }
 }
Exemple #2
0
 public void Run(DataGrid dataGrid)
 {
     if (Bat.IsBat(dataGrid, out Bat bat))
     {
         Process.Start(bat.Path);
     }
 }
Exemple #3
0
 public void OpenDestinationLocation(DataGrid dataGrid)
 {
     if (Bat.IsBat(dataGrid, out Bat bat))
     {
         var location = Path.GetDirectoryName(bat?.Destination);
         if (location != "")
         {
             Process.Start(location);
         }
     }
 }
Exemple #4
0
        public void Delete(DataGrid dataGrid)
        {
            if (Bat.IsBat(dataGrid, out Bat bat))
            {
                File.Delete(bat.Path);
                bats.Remove(bat);
                dataGrid.Items.Refresh();
            }

            PopulateDataGrid(dataGrid, _outputFolder);
        }