This file contains 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 System; | |
using System.Threading; | |
using System.Threading.Tasks; | |
using Android.App; | |
using Android.Widget; | |
using Android.OS; | |
namespace MonoAndroidApplication18 | |
{ | |
[Activity(Label = "MonoAndroidApplication18", MainLauncher = true, Icon = "@drawable/icon")] |
This file contains 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 System; | |
using Android.App; | |
using Android.Content; | |
using Android.OS; | |
[assembly: UsesPermission("com.android.launcher.permission.INSTALL_SHORTCUT")] | |
namespace AndroidApplication6 | |
{ | |
[Activity(Label = "AndroidApplication6", MainLauncher = true, Icon = "@drawable/icon")] |
This file contains 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 MonoTouch.Foundation; | |
using MonoTouch.UIKit; | |
using MonoTouch.Dialog; | |
namespace SignalR.Client.MonoTouch.Sample | |
{ | |
[Register ("AppDelegate")] | |
public partial class AppDelegate : UIApplicationDelegate | |
{ | |
UIWindow window; |
This file contains 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
<?xml version="1.0" encoding="utf-8"?> | |
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" | |
android:orientation="vertical" | |
android:layout_width="fill_parent" | |
android:layout_height="fill_parent"> | |
<EditText | |
android:layout_width="fill_parent" | |
android:layout_height="wrap_content" | |
android:id="@+id/Message" /> | |
<Button |
This file contains 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 System.Collections.Generic; | |
using Android.App; | |
using Android.OS; | |
using Android.Widget; | |
namespace SignalR.Client.MonoDroid.Sample | |
{ | |
[Activity(Label = "SignalR.Client.MonoDroid.Sample", MainLauncher = true, Icon = "@drawable/icon")] | |
public class DemoActivity : Activity | |
{ |
This file contains 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
PS C:\code> mulder create site mulder-test | |
create config.yaml | |
create Rules | |
create layouts\default.html | |
Error | |
Message: Operation could destabilize the runtime. | |
Source: Mulder | |
Stack Trace: at (Object ) | |
at Mulder.Base.Extensions.AnonymousTypeExtensions.AnonymousTypeConverter.ConvertToDictionary(Object model) |
This file contains 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
public abstract class ViewModelBase | |
: MvxViewModel, | |
IMvxServiceConsumer<ITinyMessengerHub> | |
{ | |
protected ViewModelBase() | |
{ | |
MessengerHub = this.GetService<ITinyMessengerHub>(); | |
} | |
protected ITinyMessengerHub MessengerHub { get; private set; } |
This file contains 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
public abstract class SubViewModelBase<TResult> : ViewModelBase | |
{ | |
protected string MessageId { get; private set; } | |
protected SubViewModelBase(string messageId) | |
{ | |
MessageId = messageId; | |
} | |
protected void Cancel() |
This file contains 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
protected bool RequestSubNavigate<TViewModel, TResult>(IDictionary<string, string> parameterValues, Action<TResult> onResult) | |
where TViewModel : SubViewModelBase<TResult> | |
{ | |
parameterValues = parameterValues ?? new Dictionary<string, string>(); | |
if (parameterValues.ContainsKey("messageId")) | |
throw new ArgumentException("parameterValues cannot contain an item with the key 'messageId'"); | |
string messageId = Guid.NewGuid().ToString(); |
OlderNewer