public InternalMembershipProvider(IUserProxy userProxy) { if (userProxy == null) this.userProxy = new UserProxy(); else this.userProxy = userProxy; }
public CreateNewUser(IUserProxy userProxy, User currentUser, UserOperation userOperation) { InitializeComponent(); VM = new CreateUserViewModel(userProxy, currentUser, userOperation); VM.View = this; DataContext = VM; }
/// <summary> /// /// </summary> /// <param name="userProxy"></param> /// <param name="currentUser"></param> /// <param name="userOperation"></param> public CreateUserViewModel(IUserProxy userProxy, User currentUser, UserOperation userOperation) { this.userProxy = userProxy; this.userOperation = userOperation; if (userOperation == UserOperation.Edit) { Title = MergedResources.Common_EditUser; this.currentUser = currentUser; this.LoginIdReadOnly = true; } else if (userOperation == UserOperation.Add) { Title = MergedResources.Common_AddUser; this.currentUser = new User(); this.LoginIdReadOnly = false; } else { this.currentUser = currentUser; this.LoginIdReadOnly = true; } InitializeCollections(this.currentUser); isLanguageChanged = false; IsChanged = false; IsSaved = true; }
/// <summary> /// /// </summary> /// <param name="userProxy"></param> public AccountSetting(IUserProxy userProxy) { this.InitializeComponent(); VM = new CreateUserViewModel(userProxy, KmtConstants.LoginUser, UserOperation.SetAccount); DataContext = VM; }
public AccountController( IConfigurationService configurationService, IUserProxy userProxy, IAuthenticationService authenticationService) { _configurationService = configurationService; _userProxy = userProxy; _authenticationService = authenticationService; }
/// <summary> /// /// </summary> /// <param name="configProxy"></param> /// <param name="ssProxy"></param> /// <param name="hqProxy"></param> /// <param name="userProxy"></param> /// <param name="stockProxy"></param> /// <param name="keyProxy"></param> public ConfigurationView(IConfigProxy configProxy, ISubsidiaryProxy ssProxy, IHeadQuarterProxy hqProxy, IUserProxy userProxy, IKeyTypeConfigurationProxy stockProxy, IKeyProxy keyProxy, int? pageIndex) { InitializeComponent(); this.reSizeWnd(); VM = new ConfigurationViewModel(configProxy,ssProxy,hqProxy,userProxy,stockProxy,keyProxy,pageIndex); VM.View = this; DataContext = VM; Closed += this.ConfigurationView_Closed; }
public UserManagement(MainWindowViewModel mainVm, IUserProxy userProxy) { InitializeComponent(); VM = new UserManagementViewModel(userProxy); DataContext = VM; mainVm.CheckUserSelected += new CheckAvailableEventHandler((s, e) => VM.CheckUserSelected(e)); mainVm.CreateUser += new EventHandler((s, e) => VM.CreaterUser()); mainVm.EditUser += new EventHandler((s, e) => VM.EditUser()); mainVm.DeleteUser += new EventHandler((s, e) => VM.DeleteUser()); mainVm.RefreshUsers += new SearchUserEventHandler((s, e) => VM.RefreshUsers(e.UserName, e.Role.RoleId)); }
public ConfigurationViewModel(IConfigProxy configProxyParam, ISubsidiaryProxy ssProxyParam, IHeadQuarterProxy hqProxyParam, IUserProxy userProxyParam, IKeyTypeConfigurationProxy stockProxyParam, IKeyProxy keyProxyParam, int? pageIndex) { ssProxy = ssProxyParam ?? new SubsidiaryProxy(); configProxy = configProxyParam ?? new ConfigProxy(KmtConstants.LoginUser); userProxy = userProxyParam ?? new UserProxy(); hqProxy = hqProxyParam ?? new HeadQuarterProxy(); stockProxy = stockProxyParam ?? new KeyTypeConfigurationProxy(); keyProxy = keyProxyParam ?? new KeyProxy(KmtConstants.LoginUser, KmtConstants.HeadQuarterId); this.LoadPages(); if (pageIndex != null && pageIndex < ConfigPages.Count) this.SelectedConfigPage = ConfigPages.ElementAt(pageIndex.Value); else this.SelectedConfigPage = ConfigPages.ElementAt(0); }
static void Example(string[] args) { IUserProxy pr = LoginFactory.LoginToFacadeSystem("elal"); (pr as CompanyFacadeProxy).createFlight("1"); (pr as CompanyFacadeProxy).createFlight("2"); (pr as CompanyFacadeProxy).createFlight("1"); (pr as CompanyFacadeProxy).createFlight("1"); IUserProxy pr2 = LoginFactory.LoginToFacadeSystem("koren"); (pr2 as CustomerFacadeProxy).buyTicket("1"); (pr2 as CustomerFacadeProxy).buyTicket("1"); IUserProxy pr3 = LoginFactory.LoginToFacadeSystem(""); (pr3 as AnonymousFacadeProxy).showFlights(); }
public void Init() { _fakeUserProxy = Substitute.For <IUserProxy>(); _uut = new KontoController(_fakeUserProxy); _rvm = new RegistorViewModel() { Username = "******", Email = "*****@*****.**", GivenName = "Test", LastName = "Tango", Password = "******", ConfirmPassword = "******" }; _savedUser = new User() { Username = "******", Email = "*****@*****.**", GivenName = "Saved", LastName = "User", Password = "******", }; }
public AccountBackend(IUserProxy userProxy) { _userProxy = userProxy; }
/// <summary> /// /// </summary> /// <param name="mainFrame"></param> /// <param name="configProxy"></param> /// <param name="keyProxy"></param> /// <param name="userProxy"></param> /// <param name="logProxy"></param> /// <param name="ssProxy"></param> /// <param name="hqProxy"></param> /// <param name="stockProxy"></param> public MainWindowViewModel(Frame mainFrame, IConfigProxy configProxy, IKeyProxy keyProxy, IUserProxy userProxy, ILogProxy logProxy, ISubsidiaryProxy ssProxy, IHeadQuarterProxy hqProxy, IKeyTypeConfigurationProxy stockProxy) { this.configProxy = configProxy ?? new ConfigProxy(KmtConstants.LoginUser); this.keyProxy = keyProxy ?? new KeyProxy(KmtConstants.LoginUser, KmtConstants.HeadQuarterId); this.userProxy = userProxy ?? new UserProxy(); this.logProxy = logProxy ?? new LogProxy(); this.ssProxy = ssProxy ?? new SubsidiaryProxy(); this.hqProxy = hqProxy ?? new HeadQuarterProxy(); this.stockProxy = stockProxy ?? new KeyTypeConfigurationProxy(); this.mainFrame = mainFrame; keyManagement = new KeyManagement(this, this.keyProxy, this.configProxy, this.ssProxy, this.hqProxy); userManagement = new UserManagement(this, this.userProxy); logViewer = new ViewLogs(this, this.logProxy); InitializeNotificationSystem(); RibbonTabIndex = KeyPageIndex; InitializeRoles(); LogTypes.Add(MergedResources.Common_SystemLog); LogTypes.Add(MergedResources.Common_OperationLog); OnCurrentUserRoleChanged(); OnAutoReportChanged(null, null); }
public CollabratorQuery(IUserProxy userAPI, IUnitOfWork <CPDbContext> unitOfWork, IAppUser user) { _uproxy = userAPI; _unitOfWork = unitOfWork; _user = user; }
public AppUser(ICoursePlatformHttpContext ctx, IUserProxy userSvc) { _ctx = ctx; _userSvc = userSvc; }
/// <summary> /// /// </summary> /// <param name="userProxy"></param> public UserManagementViewModel(IUserProxy userProxy) { this.userProxy = userProxy; users = new ObservableCollection<User>(); selectedUserCollection = new ObservableCollection<User>(); }
public RegistrationBackend(ICheckConnection checkConnection, IUserProxy userProxy) { _checkConnection = checkConnection; _userProxy = userProxy; }
public HomeController(IUserProxy userProxy) { _proxy = userProxy; }
/// <summary> /// 绑定与数据源的关联 /// </summary> /// <param name="proxy"></param> public void InitDataSource(IUserProxy proxy) { m_proxyUser = proxy; }
/// <summary> /// setup everything for the LobbyController /// </summary> /// <param name="userProxy">Instance of user proxy</param> /// <param name="lobbyProxy">Instance of Lobby proxy</param> /// <param name="userSession">Instance of user session</param> public LobbyController(IUserProxy userProxy, ILobbyProxy lobbyProxy, IUserSession userSession) { _userproxy = userProxy; _lobbyProxy = lobbyProxy; _userSession = userSession; }
public KontoController(IUserProxy userProxy) { _proxy = userProxy; }
public RegisterBackend(IUserProxy userProxy) { _userProxy = userProxy; }
public SettingsBackend(ICheckConnection checkConnection, IUserProxy userProxy) { _checkConnection = checkConnection; _userProxy = userProxy; }
public UserService(IUserProxy userProxy) { this._userProxy = userProxy; }
public LoginBackend(IUserProxy userProxy) { _userProxy = userProxy; }
public LoginBackend(ICheckConnection checkConnection, IUserProxy userProxy) { _checkConnection = checkConnection; _userProxy = userProxy; }