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); }
protected override void OnBindViewModel() { base.OnBindViewModel(); BindService.AutoBindProperty(o => o.Name, tbUserName); BindService.AutoBindProperty(o => o.Url, tbUrl); }
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); }
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(); }
private void InitMiscPage() { BindService.AutoBindProperty(m => m.LoadAvailablePackagesOnStart, cbLoadAvailablePackagesOnStart); }
public APIService(BindService bind) { this.BindService = bind; }