コード例 #1
0
 public void TearDown()
 {
     _form.Dispose();
     _form = null;
 }
コード例 #2
0
ファイル: MainForm.cs プロジェクト: aggie0642/SWEN-670
 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
ファイル: MainForm.cs プロジェクト: aggie0642/SWEN-670
 public void mappingFileDialog_FileOk(object sender, CancelEventArgs e)
 {
     var networkForm = new NetworkForm {FilePath = mappingFileDialog.FileName};
     networkForm.MdiParent = this;
     _formInteractionHelper.ShowForm(networkForm);;
 }