public void TearDown() { _view = null; _model = null; _controller = null; _currentDirNodes = null; Directory.Delete(TestPath, true); }
private static void Main() { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); //var model = new BaconModel(); var view = new MainWindow(); //var controller = new MainViewController(model, view); Application.Run(view); }
public void SetUp() { _view = new MainWindow(); _model = new BaconModel(); _controller = new MainViewController(_model, _view); _currentDirNodes = new TreeView().Nodes; Directory.CreateDirectory(TestPath); //_model.ChangeDirectory(TestPath); var tp = new FileInfo(TestPath + TestFile); string test = "Push me" + Environment.NewLine + "And then just touch me" + Environment.NewLine + "Till I can get my satisfaction" + Environment.NewLine + "Satisfaction, satisfaction, satisfaction, satifaction"; File.WriteAllText(tp.FullName, test); }
private void btnInfo_Click(object sender, EventArgs e) { MainWindow m = new MainWindow(); m.ShowDialog(); }