コード例 #1
0
        public HeadObservationsView()
        {
            InitializeComponent();

            ElementHost EL = new ElementHost();

            EL.Width  = 700;
            EL.Height = 800;
            MsheLayerView MLW = new MsheLayerView();

            LC = new HydroNumerics.MikeSheTools.ViewModel.LayersCollection();

            MLW.DataContext = LC;
            MLW.TestMehtod();
            EL.Child = MLW;
            this.tabPage2.Controls.Add(EL);

            ElementHost EL2 = new ElementHost();

            EL2.Width  = 700;
            EL2.Height = 800;
            WV         = new WellView();
            EL2.Child  = WV;

            this.tabPage3.Controls.Add(EL2);
        }
コード例 #2
0
    public HeadObservationsView()
    {
      InitializeComponent();

      ElementHost EL = new ElementHost();
      EL.Width = 700;
      EL.Height = 800;
      MsheLayerView MLW = new MsheLayerView();
      LC = new HydroNumerics.MikeSheTools.ViewModel.LayersCollection();
      
      MLW.DataContext = LC;
      MLW.TestMehtod(); 
      EL.Child = MLW;
      this.tabPage2.Controls.Add(EL);

      ElementHost EL2 = new ElementHost();
      EL2.Width = 700;
      EL2.Height = 800;
      WV = new WellView();
      EL2.Child = WV;
     
      this.tabPage3.Controls.Add(EL2);

    }