Inheritance: System.Windows.Forms.Form, IMainView
Esempio n. 1
0
 public void TearDown()
 {
     _view = null;
     _model = null;
     _controller = null;
     _currentDirNodes = null;
     Directory.Delete(TestPath, true);
 }
Esempio n. 2
0
        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);
        }
Esempio n. 3
0
 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);
 }
Esempio n. 4
0
 private void btnInfo_Click(object sender, EventArgs e)
 {
     MainWindow m = new MainWindow();
     m.ShowDialog();
 }