Esempio n. 1
0
 private static void WriteSharesToConsole(IShareProvider provider)
 {
     foreach (var share in provider.Provide())
     {
         Console.WriteLine(share);
     }
 }
Esempio n. 2
0
        public MainViewModel(IAccountProvider acService, IShareProvider shProvider, IHistoryProvider hiProvider)
        {
            this.accountProvider = acService;
            this.shareProvider   = shProvider;
            this.historyProvider = hiProvider;

            this.ChangeSection = new Command <string>(ChangeSectionExecute);
            this.ChangeSectionExecute(this.sectionType.ToString());
            accountProvider.AccountUpdated      += AccountProvider_AccountUpdated;
            accountProvider.DefaultThemeUpdated += Instance_DefaultThemeUpdated;
        }
        public SettingsViewModel(ISectionManager manager, IAccountProvider accProvider, IShareProvider shProvider)
        {
            this.sectionManager  = manager;
            this.accountProvider = accProvider;
            this.shareProvider   = shProvider;

            this.ShareCommand           = new Command(ShareCommand_Execute);
            this.RateReview             = new RateRaviewViewModel();
            this.SendFeedbackCommand    = new Command(SendFeedbackCommand_Execute);
            this.ShowRateControlCommand = new Command(ShowRateControlCommand_Execute);
            var task = Refresh();
        }
 public ShareManager(IShareProvider shareProvider)
 {
     ShareProvider = shareProvider;
 }