예제 #1
0
 public void TearDown()
 {
     _form.Dispose();
     _form = null;
 }
예제 #2
0
 public void NewClick(object sender, EventArgs e)
 {
     var networkForm = new NetworkForm();
     networkForm.MdiParent = this;
     _formInteractionHelper.ShowForm(networkForm); ;
 }
예제 #3
0
        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
                };
        }
예제 #4
0
 public void mappingFileDialog_FileOk(object sender, CancelEventArgs e)
 {
     var networkForm = new NetworkForm {FilePath = mappingFileDialog.FileName};
     networkForm.MdiParent = this;
     _formInteractionHelper.ShowForm(networkForm);;
 }