private static void WriteSharesToConsole(IShareProvider provider) { foreach (var share in provider.Provide()) { Console.WriteLine(share); } }
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; }