Click here to Skip to main content
Click here to Skip to main content
Add your own
alternative version
Go to top

Modeling M-V-VM

, 5 Jun 2009
An article which tries to present an approach for decoupling M-V-VM View Model objects
TestTreeViewWithLeftBarView.zip
TestTreeViewWithLeftBarView
bin
Debug
TestTreeViewWithLeftBarView.exe
TestTreeViewWithLeftBarView.vshost.exe
TestTreeViewWithLeftBarView.vshost.exe.manifest
WorldDataLib.dll
Properties
Settings.settings
Resources
Service References
WorldServiceReference
configuration.svcinfo
configuration91.svcinfo
Reference.svcmap
service.wsdl
View
ViewModel
WorldDataLib
bin
Debug
WorldDataLib.dll
Model
Properties
WorldServiceApp
bin
Debug
WorldDataLib.dll
WorldServiceApp.exe
WorldServiceApp.vshost.exe
WorldServiceApp.vshost.exe.manifest
WorldServiceLib.dll
Properties
WorldServiceLib
bin
Debug
WorldDataLib.dll
WorldServiceLib.dll
Properties
WorldServiceLib.csproj.user
Modeled_ViewModel.suo
//------------------------------------------------------------------------------
// <auto-generated>
//     This code was generated by a tool.
//     Runtime Version:2.0.50727.3053
//
//     Changes to this file may cause incorrect behavior and will be lost if
//     the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------

namespace TestTreeViewWithRightBarView.WorldServiceReference {
    
    
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "3.0.0.0")]
    [System.ServiceModel.ServiceContractAttribute(ConfigurationName="WorldServiceReference.IWorldDataService")]
    public interface IWorldDataService {
        
        [System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IWorldDataService/GetContinentSizeInSquareMiles", ReplyAction="http://tempuri.org/IWorldDataService/GetContinentSizeInSquareMilesResponse")]
        double GetContinentSizeInSquareMiles(string strContinent);
        
        [System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IWorldDataService/GetCountryCurrency", ReplyAction="http://tempuri.org/IWorldDataService/GetCountryCurrencyResponse")]
        WorldDataLib.Model.CurrenciesEnum GetCountryCurrency(string strCountry);
        
        [System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IWorldDataService/GetCityCurrentTemprature", ReplyAction="http://tempuri.org/IWorldDataService/GetCityCurrentTempratureResponse")]
        double GetCityCurrentTemprature(string strCity);
    }
    
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "3.0.0.0")]
    public interface IWorldDataServiceChannel : TestTreeViewWithRightBarView.WorldServiceReference.IWorldDataService, System.ServiceModel.IClientChannel {
    }
    
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "3.0.0.0")]
    public partial class WorldDataServiceClient : System.ServiceModel.ClientBase<TestTreeViewWithRightBarView.WorldServiceReference.IWorldDataService>, TestTreeViewWithRightBarView.WorldServiceReference.IWorldDataService {
        
        public WorldDataServiceClient() {
        }
        
        public WorldDataServiceClient(string endpointConfigurationName) : 
                base(endpointConfigurationName) {
        }
        
        public WorldDataServiceClient(string endpointConfigurationName, string remoteAddress) : 
                base(endpointConfigurationName, remoteAddress) {
        }
        
        public WorldDataServiceClient(string endpointConfigurationName, System.ServiceModel.EndpointAddress remoteAddress) : 
                base(endpointConfigurationName, remoteAddress) {
        }
        
        public WorldDataServiceClient(System.ServiceModel.Channels.Binding binding, System.ServiceModel.EndpointAddress remoteAddress) : 
                base(binding, remoteAddress) {
        }
        
        public double GetContinentSizeInSquareMiles(string strContinent) {
            return base.Channel.GetContinentSizeInSquareMiles(strContinent);
        }
        
        public WorldDataLib.Model.CurrenciesEnum GetCountryCurrency(string strCountry) {
            return base.Channel.GetCountryCurrency(strCountry);
        }
        
        public double GetCityCurrentTemprature(string strCity) {
            return base.Channel.GetCityCurrentTemprature(strCity);
        }
    }
}

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

Share

About the Author

Izhar Lotem
Software Developer
Israel Israel
Software Developer in a promising Clean-Tech company

| Advertise | Privacy | Mobile
Web02 | 2.8.140916.1 | Last Updated 5 Jun 2009
Article Copyright 2009 by Izhar Lotem
Everything else Copyright © CodeProject, 1999-2014
Terms of Service
Layout: fixed | fluid