Exemple #1
0
 public GCSelectionWindow()
 {
     foreach (string fasta in Project.fastas)
     {
         if (File.Exists(System.IO.Path.GetFullPath(fasta)))
         {
             fastasGC.Add(new Project.ItemsToComputeGC()
             {
                 Title    = System.IO.Path.GetFileNameWithoutExtension(fasta),
                 FullPath = fasta,
                 GC       = false
             });
         }
         else
         {
             string error = "File" + System.IO.Path.GetFileNameWithoutExtension(fasta) + "no longer exists (It has been renamed, deleted or moved) - deleting the file from the project";
             Status = error;
             Project.ErrorLog.Add(error);
             Project.fastas.Remove(fasta);
         }
     }
     InitializeComponent();
     this.Title                = "GC percentage and sequence information";
     main                      = this;
     btnComputeGC.IsEnabled    = true;
     btnCancel.IsEnabled       = true;
     lbSelectionGC.IsEnabled   = true;
     lbSelectionGC.ItemsSource = fastasGC;
 }
Exemple #2
0
        private void ComputeGC_Click(object sender, RoutedEventArgs e)
        {
            GCSelectionWindow SlW = new GCSelectionWindow();

            SlW.Show();
            SlW.Owner = this;
            SlW.Show();
            Project.SaveProject();
        }