Beispiel #1
0
		public static void Main (string[] args)
		{
			Application.Init ();
			MainWindow win = new MainWindow ();

            if ( args.Length > 0 )
            {
                var records = args[0];
                var dh = new CodeRecordData();
                dh.Open( records );
                var crs = dh.Load();
                win.Load( crs );
            }

			win.Show ();
			Application.Run ();
		}
 public void LoadCoverage( string db ) {
     var data = new CodeRecordData();
     data.Open( db );
     Records = data.Load();
     metadata = data.LoadMeta();
 }
Beispiel #3
0
 protected void OpenCoverageFile(object sender, EventArgs e)
 {
     var fb = new FileChooserDialog( "Load a coverage file", this, FileChooserAction.Open, "Cancel", ResponseType.Cancel, "Open", ResponseType.Accept );
     //fb.Filter = new FileFilter() { Name = "coverage files" };
     //fb.Filter.AddPattern( "*.xcov" );
     fb.Response += (o, args) => fb.Hide();
     fb.Run();
     var records = fb.Filename;
     if ( !string.IsNullOrEmpty(records) && File.Exists(records) ) 
     {
         var dh = new CodeRecordData();
         dh.Open( records );
         var crs = dh.Load();
         Load( crs );
     }
 }