Created
December 30, 2012 16:51
Simple files for a new MvvmCross core project
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using Cirrious.MvvmCross.Application; | |
using Cirrious.MvvmCross.ExtensionMethods; | |
using Cirrious.MvvmCross.Interfaces.ServiceProvider; | |
using Cirrious.MvvmCross.Interfaces.ViewModels; | |
namespace Casino.Core | |
{ | |
public class App | |
: MvxApplication | |
, IMvxServiceProducer | |
{ | |
public App() | |
{ | |
// set the start object | |
var startApplicationObject = new StartApplicationObject(); | |
this.RegisterServiceInstance<IMvxStartNavigation>(startApplicationObject); | |
} | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using Cirrious.MvvmCross.ViewModels; | |
namespace Casino.Core.ViewModels | |
{ | |
public abstract class BaseViewModel : MvxViewModel | |
{ | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using Cirrious.MvvmCross.Platform.Diagnostics; | |
namespace Casino.Core | |
{ | |
public static class CasinoTrace | |
{ | |
public const string Tag = "CasinoApp"; | |
public static void Trace(string message, params object[] args) | |
{ | |
MvxTrace.TaggedTrace(Tag, message, args); | |
} | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
namespace Casino.Core.ViewModels | |
{ | |
public class HomeViewModel : BaseViewModel | |
{ | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using Casino.Core.ViewModels; | |
using Cirrious.MvvmCross.Interfaces.ViewModels; | |
using Cirrious.MvvmCross.ViewModels; | |
namespace Casino.Core | |
{ | |
public class StartApplicationObject | |
: MvxApplicationObject | |
, IMvxStartNavigation | |
{ | |
public void Start() | |
{ | |
RequestNavigate<HomeViewModel>(); | |
} | |
public bool ApplicationCanOpenBookmarks | |
{ | |
get { return false; } | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment