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
| var connection = Mvx.Resolve<INetworkConnection>(); | |
| connection.OnChange += () => RaisePropertyChanged("IsConnecting") |
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
| public override void LoadPlugins (IMvxPluginManager pluginManager) | |
| { | |
| base.LoadPlugins (pluginManager); | |
| pluginManager.EnsurePluginLoaded<Cirrious.MvvmCross.Plugins.Messenger.PluginLoader> (); | |
| } |
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
| public HomeVM () | |
| { | |
| token = MessageHub.Subscribe<CoreStatusMessage> ((d) => CoreStatusChanged(d.CoreStatus)); | |
| } |
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
| void ConnectionChanged (CoreStatusType coreStatus) | |
| { | |
| IMvxMessenger messenger = Mvx.Resolve(IMvxMessenger); | |
| messenger.Publish (new CoreStatusMessage(sender, coreStatus)); | |
| } |
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
| public static class Extensions | |
| { | |
| public static IEnumerable<T> GetEnumerable<T>(this Java.Util.IEnumeration enumeration) where T : class | |
| { | |
| while (enumeration.HasMoreElements) | |
| yield return enumeration.NextElement() as T; | |
| } | |
| } |
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
| class IPhoneViewPresenter : MvxModalNavSupportTouchViewPresenter | |
| { | |
| public IPhoneViewPresenter (UIApplicationDelegate applicationDelegate, UIWindow window) | |
| :base(applicationDelegate, window) | |
| { | |
| } | |
| HomeView homeView; | |
| protected override UIViewController CurrentTopViewController |
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
| [Test( Description="Should Login OK" )] | |
| public async void OK () | |
| { | |
| var loginSession = LoginSession.Instance; | |
| await loginSession.Login ("user", "password"); | |
| Assert.True (LoginSession.Instance.LoggedIn); | |
| } |
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
| var source = new CsTableViewSource (myNSTableView); | |
| var binding = this.CreateBindingSet<TaskManagerViewController, TaskManagerVM> (); | |
| binding.Bind (source).For ((s) => s.ItemsSource).To ((vm) => vm.MyEnumerable); | |
| binding.Apply (); | |
| myNSTableView.Source = source; |
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 System; | |
| using Cirrious.CrossCore.Core; | |
| using Cirrious.MvvmCross.Binding.BindingContext; | |
| using MonoMac.AppKit; | |
| using MonoMac.Foundation; | |
| namespace CentraStage.Mac | |
| { | |
| [Register("CsTableCellView")] | |
| public class CsTableCellView : NSTableCellView, IMvxBindingContextOwner, IMvxDataConsumer |
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 System; | |
| using MonoMac.AppKit; | |
| using MonoMac.Foundation; | |
| namespace CentraStage.Mac | |
| { | |
| [Register("CsTableColumn")] | |
| public class CsTableColumn : NSTableColumn | |
| { | |
| #region Constructors |