コード例 #1
0
        public override void Initialize()
        {
            RateThisAppCommand = new RateThisAppCommand();
            SendAnEmailCommand = new SendAnEmailCommand();
            OtherAppsCommand   = new OtherAppsCommand();

            var versionAttrib = new AssemblyName(Assembly.GetExecutingAssembly().FullName);

            Version = versionAttrib.Version.ToString();
        }
コード例 #2
0
ファイル: AboutViewModel.cs プロジェクト: bootlegrobot/awful2
        public AboutViewModel()
        {
            AppName = string.Empty;
            AppVersion = string.Empty;
            AppDescription = string.Empty;
            MiscText1 = string.Empty;
            MiscText2 = string.Empty;
            Copyright = string.Empty;

            RateThisAppCommand = new RateThisAppCommand();
            SendAnEmailCommand = new Commands.SendAnEmailCommand(){ Subject = "Awful QCS" };
        }
コード例 #3
0
        public PhoneMainViewModel(IBirthdaySource source, ISettingsService settings, INavigationService navigation)
            : base(source, settings, navigation)
        {
            AboutCommand    = new RelayCommand(About);
            SettingsCommand = new RelayCommand(Settings);
            RateCommand     = new RateThisAppCommand();
            PinCommand      = new RelayCommand(PinToStart);
            var addContactCmd = new AddContactCommand();

            addContactCmd.ContactAdded += addContactCmd_ContactAdded;
            AddContactCommand           = addContactCmd;
            ViewPeopleCommand           = new ViewPeopleCommand();
        }
コード例 #4
0
        public AboutViewModel()
        {
            AppName        = string.Empty;
            AppVersion     = string.Empty;
            AppDescription = string.Empty;
            MiscText1      = string.Empty;
            MiscText2      = string.Empty;
            Copyright      = string.Empty;

            RateThisAppCommand = new RateThisAppCommand();
            SendAnEmailCommand = new Commands.SendAnEmailCommand()
            {
                Subject = "Awful QCS"
            };
        }
コード例 #5
0
 public CommandSampleViewModel()
 {
     RateThisAppCommand = new RateThisAppCommand();
     SendAnEmailCommand = new SendAnEmailCommand();
 }
コード例 #6
0
 public CommandSampleViewModel()
 {
     RateThisAppCommand = new RateThisAppCommand();
     SendAnEmailCommand = new SendAnEmailCommand();
 }
コード例 #7
0
        private void appBarReview_Click(object sender, EventArgs e)
        {
            RateThisAppCommand cmd = new RateThisAppCommand();

            cmd.Execute(null);
        }
コード例 #8
0
 private AboutThisAppViewModel()
 {
     RateAppCommand      = new RateThisAppCommand();
     SupportEmailCommand = new SendAnEmailCommand();
     OtherAppsCommand    = new OtherAppsCommand();
 }
コード例 #9
0
 public CommandSampleViewModel()
 {
     RateThisAppCommand    = new RateThisAppCommand();
     SendAnEmailCommand    = new SendAnEmailCommand();
     OpenLockscreenCommand = new OpenLockscreenSettingCommand();
 }