コード例 #1
0
ファイル: PackageDetailsView.cs プロジェクト: qzrGG/MetaPack
        protected override void OnBindViewModel()
        {
            base.OnBindViewModel();

            lTitle.Text = string.Format("{0} v{1}", ViewModel.Title, ViewModel.Version);

            BindService.AutoBindProperty(o => o.Authors, this.mAuthors);
            BindService.AutoBindProperty(o => o.Id, this.lId);
            BindService.AutoBindProperty(o => o.Downloads, this.lDownloads);
            BindService.AutoBindProperty(o => o.TotalDownloads, this.mTotalDownloads);
            BindService.AutoBindProperty(o => o.Created, this.lCreated);
            BindService.AutoBindProperty(o => o.Description, this.lDescription);
            BindService.AutoBindProperty(o => o.LastUpdated, this.lLastUpdated);
            BindService.AutoBindProperty(o => o.PackageSize, this.lPackageSize);
            BindService.AutoBindProperty(o => o.Dependencies, this.lDependencies);
            BindService.AutoBindProperty(o => o.ReleaseNotes, this.lReleaseNotes);

            BindLink(ViewModel.ProjectSite, lProjectSite);
            BindLink(ViewModel.License, lLicense);
            BindLink(ViewModel.Gallery, lGallery);


            ;

            //BindService.AutoBindProperty(o => o.ProjectSite, this.lProjectSite);
            //BindService.AutoBindProperty(o => o.License, this.lLicense);
            //BindService.AutoBindProperty(o => o.Gallery, this.lGallery);
        }
コード例 #2
0
        protected override void OnBindViewModel()
        {
            base.OnBindViewModel();

            BindService.AutoBindProperty(o => o.Name, tbUserName);
            BindService.AutoBindProperty(o => o.Url, tbUrl);
        }
コード例 #3
0
        protected override void OnBindViewModel()
        {
            base.OnBindViewModel();

            var appDataService = ShServiceContainer.Instance.GetAppDataService <MetaPackDataService>();

            if (ViewModel.SharePointConnection != null)
            {
                BindService.AutoBindProperty(m => m.SharePointConnection, cbConnection, appDataService.SharePointConnections);
            }

            BindService.AutoBindProperty(m => m.NuGetPackage, cbPackage, new[] { ViewModel.NuGetPackage });
            BindService.AutoBindProperty(m => m.IsForceDeploy, cbForceDeploy);
        }
コード例 #4
0
        protected override void OnBindViewModel()
        {
            base.OnBindViewModel();

            //BindService.AutoBindProperty(o => o.Name, tbUserName);
            BindService.AutoBindProperty(o => o.Url, tbUrl);

            BindService.AutoBindProperty(o => o.UserName, tbUserName);
            BindService.AutoBindProperty(o => o.UserPassword, tbUserPassoword);

            BindService.AutoBindProperty(o => o.AuthMode, cbAuthMode, ViewModelAuthModes);

            UpdateUseCurrentCredentialsState();
        }
コード例 #5
0
ファイル: OptionsViewControl.cs プロジェクト: qzrGG/MetaPack
 private void InitMiscPage()
 {
     BindService.AutoBindProperty(m => m.LoadAvailablePackagesOnStart, cbLoadAvailablePackagesOnStart);
 }
コード例 #6
0
 public APIService(BindService bind)
 {
     this.BindService = bind;
 }