ExecuteTasks() public method

public ExecuteTasks ( IConfigurationView configurationWizard ) : void
configurationWizard IConfigurationView
return void
コード例 #1
0
 public void TestBadBitmapPathLogged()
 {
     var model = new ConfigurationModel { FileLocation = Path.GetTempFileName()};
     var testPath = "C:\\Test.bmp";
     model.General = new ConfigurationModel.GeneralOptions { ListBackground = new ConfigurationModel.ListBackgroundOptions { ImagePath = testPath}};
     var controller = new ConfigurationController(model);
     var testView = new ConfigViewForTests();
     testView.Compile = true;
     try
     {
         controller.ExecuteTasks(testView);
         // The warning message complains about legacy projects when the bitmap has any path separaters
         TestMessageLogged(testView, "legacy data");
         // The warning message should contain the image path
         TestMessageLogged(testView, testPath);
     }
     finally
     {
         try
         {
             File.Delete(model.FileLocation);
         }
         catch (Exception)
         {
             // We tried to delete it, but this test shouldn't fail if we couldn't
         }
     }
 }
コード例 #2
0
 private void goButton_Click(object sender, System.EventArgs e)
 {
     _controller.ExecuteTasks(this);
 }