public MainFrameMDIParent run() { // create the instance of the main form mainform = new MainFrameMDIParent(); //suscribe the components suscribe(); return(mainform); }
public void select_result_hash() { string filename = null; if ((filename = MainFrameMDIParent.askforCVS()) != null) { create_control_result(filename); } }
public void TestMethod1() { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); App app = App.GetInstance(); MainFrameMDIParent form = app.run(); app.create_control_repository(@"C:\\Users\\adiel\\Documents\\Visual Studio 2013\\Projects\\BMMTestLabs\\BMMTestLabs\bin\\Debug\\HashRepository.csv"); app.create_control_result(@"C:\\Users\\adiel\\Documents\\Visual Studio 2013\\Projects\\BMMTestLabs\\BMMTestLabs\bin\\Debug\\HashResults.csv"); Thread.Sleep(2000); form.autoclose(); bool enabledexport = form.BtnExport.Enabled; form.Load += delegate(object sender, EventArgs e) { form.BtnResultCompare.PerformClick(); enabledexport = form.BtnExport.Enabled; }; Application.Run(form); Assert.IsTrue(enabledexport); }
public HashRepositoryController(IHashRepositoryHandler repo, View.MainFrameMDIParent parentform) { this.Repo = repo; this.Parentform = parentform; }