/// <summary> /// Initializes a new instance of the <see cref="info_InfoViewModel" /> class. /// </summary> /// <param name="dialogService">The Dialog Service.</param> /// <param name="navigationService">The Navigation Service.</param> /// <param name="lockScreenService">The Lock Screen Service.</param> /// <param name="info">The Info.</param> /// <param name="monumentsCollection">The Monuments Collection.</param> /// <param name="specialplacesCollection">The Specialplaces Collection.</param> /// <param name="album">The Album.</param> public info_InfoViewModel(IDialogService dialogService, INavigationService navigationService, ILockScreenService lockScreenService, Iinfo info, ImonumentsCollection monumentsCollection, IspecialplacesCollection specialplacesCollection, Ialbum album) { _dialogService = dialogService; _navigationService = navigationService; _lockScreenService = lockScreenService; _info = info; _monumentsCollection = monumentsCollection; _specialplacesCollection = specialplacesCollection; _album = album; }
/// <summary> /// Initializes a new instance of the <see cref="AboutIndiaViewModel" /> class. /// </summary> /// <param name="dialogService">The Dialog Service.</param> /// <param name="navigationService">The Navigation Service.</param> /// <param name="lockScreenService">The Lock Screen Service.</param> /// <param name="info">The Info.</param> /// <param name="monumentsCollection">The Monuments Collection.</param> /// <param name="album">The Album.</param> /// <param name="videoAlbum">The Video Album.</param> public AboutIndiaViewModel(IDialogService dialogService, INavigationService navigationService, ILockScreenService lockScreenService, Iinfo info, ImonumentsCollection monumentsCollection, Ialbum album, IvideoAlbum videoAlbum) { _dialogService = dialogService; _navigationService = navigationService; _lockScreenService = lockScreenService; _info = info; _monumentsCollection = monumentsCollection; _album = album; _videoAlbum = videoAlbum; }
/// <summary> /// 无论该类什么结构,都能实现该方法 /// </summary> /// <param name="iinfo"></param> static void PrintInfo(Iinfo iinfo) { Console.WriteLine($"Name:{iinfo.GetName()},Age:{iinfo.GetAge()}"); }