Esempio n. 1
0
 public TubePresenter(ITubeView tubeView)
 {
     this.tubeView         = tubeView;
     this.tubeModel        = new TubeModel();
     tubeView.LoadForm    += LoadAllTubeGrids;
     tubeView.SearchClick += LoadSearchResultGrid;
     tubeView.ClearClick  += LoadAllTubeGrids;
     tubeView.SetModel(tubeModel);
 }
Esempio n. 2
0
 public TubePresenter(ITubeView tubeView)
 {
     this.tubeView = tubeView;
     this.tubeModel = new TubeModel();
     tubeView.LoadForm += LoadAllTubeGrids;
     tubeView.SearchClick += LoadSearchResultGrid;
     tubeView.ClearClick += LoadAllTubeGrids;
     tubeView.SetModel(tubeModel);
 }
Esempio n. 3
0
 public void SetModel(ITubeModel tubeModel)
 {
     textBoxSearchCode.DataBindings.Add(new Binding("Text", tubeModel, "SearchCode"));
     textBoxSearchName.DataBindings.Add(new Binding("Text", tubeModel, "SearchName"));
 }