public MainForm(ICalculatorApplication theApp) { InitializeComponent(); this.theApp = theApp; string startingDir = Environment.GetFolderPath(Environment.SpecialFolder.Personal); openFileDialog.InitialDirectory = startingDir; saveFileDialog.InitialDirectory = startingDir; }
public void Init() { application = new CalculatorTestApplication(); controller = application.ControllerFactory.Controllers[0] as ICalculatorController; view = controller.View as CalculatorTestView; }