public void TearDown() { _form.Dispose(); _form = null; }
public void NewClick(object sender, EventArgs e) { var networkForm = new NetworkForm(); networkForm.MdiParent = this; _formInteractionHelper.ShowForm(networkForm); ; }
public void SetUp() { _mockPresenter = new Mock<INetworkMapPresenter>(); _mockFormInteractionHelper = new Mock<IFormInteractionHelper>(); _mockNodeList = new Mock<INodeListControlView>(); _mockMapControl = new Mock<IMapControlView>(); _form = new NetworkForm(_mockPresenter.Object, _mockFormInteractionHelper.Object) { NodeListControl = _mockNodeList.Object, MapControl = _mockMapControl.Object }; }
public void mappingFileDialog_FileOk(object sender, CancelEventArgs e) { var networkForm = new NetworkForm {FilePath = mappingFileDialog.FileName}; networkForm.MdiParent = this; _formInteractionHelper.ShowForm(networkForm);; }