Пример #1
0
        public MainForm(ICalculatorApplication theApp)
        {
            InitializeComponent();

            this.theApp = theApp;

            string startingDir =
                Environment.GetFolderPath(Environment.SpecialFolder.Personal);

            openFileDialog.InitialDirectory = startingDir;
            saveFileDialog.InitialDirectory = startingDir;
        }
Пример #2
0
 public void Init()
 {
     application = new CalculatorTestApplication();
     controller  = application.ControllerFactory.Controllers[0] as ICalculatorController;
     view        = controller.View as CalculatorTestView;
 }