private void LostPasswordEvent(object sender, RoutedEventArgs e) { ProgressBar.Visibility = System.Windows.Visibility.Visible; ServiceReference1.WebServiceClient proxy = new ServiceReference1.WebServiceClient(); proxy.RecoverLostPasswordByEmailCompleted += new EventHandler<myRequirements.ServiceReference1.RecoverLostPasswordByEmailCompletedEventArgs>(proxy_RecoverLostPasswordByEmailCompleted); proxy.RecoverLostPasswordByEmailAsync(LostPasswordEmail.Text); }
public AdminControlSDP() { // Required to initialize variables InitializeComponent(); proxy = new ServiceReference1.WebServiceClient(); NewSRPIDText.Visibility = Visibility.Collapsed; NewSRPIDTextBox.Visibility = Visibility.Collapsed; NewSRPOKButton.Visibility = Visibility.Collapsed; NewCategoryOKButton.Visibility = Visibility.Collapsed; NewCategoryIDTextBox.Visibility = Visibility.Collapsed; NewCategoryIDTextBlock.Visibility = Visibility.Collapsed; ProgressBarRight.Visibility = Visibility.Visible; ProgressBarLeft.Visibility = Visibility.Visible; proxy.GetAllSDPCompleted += new EventHandler<myRequirements.ServiceReference1.GetAllSDPCompletedEventArgs>(proxy_GetAllSDPCompleted); proxy.CreateNewSDPCompleted += new EventHandler<myRequirements.ServiceReference1.CreateNewSDPCompletedEventArgs>(proxy_CreateNewSDPCompleted); proxy.UpdateSDPCompleted += new EventHandler<myRequirements.ServiceReference1.UpdateSDPCompletedEventArgs>(proxy_UpdateSDPCompleted); questionInfoMessgeBox.okInfoMessageButotn.Click += new RoutedEventHandler(okInfoMessageButton_Click); questionInfoMessgeBox.cancelInfoMessageButton.Click += new RoutedEventHandler(cancelInfoMessageButton_Click); proxy.DeleteSDPCompleted += new EventHandler<myRequirements.ServiceReference1.DeleteSDPCompletedEventArgs>(proxy_DeleteSDPCompleted); proxy.addPatternAndRequirementRelationCompleted += new EventHandler<myRequirements.ServiceReference1.addPatternAndRequirementRelationCompletedEventArgs>(proxy_addPatternAndRequirementRelationCompleted); proxy.removePatternandRequirementRelationCompleted += new EventHandler<myRequirements.ServiceReference1.removePatternandRequirementRelationCompletedEventArgs>(proxy_removePatternandRequirementRelationCompleted); proxy.addCategoryAndDesignRelationCompleted += new EventHandler<myRequirements.ServiceReference1.addCategoryAndDesignRelationCompletedEventArgs>(proxy_addCategoryAndDesignRelationCompleted); proxy.removeCategoryAndPatternRelationCompleted += new EventHandler<myRequirements.ServiceReference1.removeCategoryAndPatternRelationCompletedEventArgs>(proxy_removeCategoryAndPatternRelationCompleted); }
public LoginWindow() { InitializeComponent(); proxy = new ServiceReference1.WebServiceClient(); proxy.getCurrentUserInformationCompleted += new EventHandler<myRequirements.ServiceReference1.getCurrentUserInformationCompletedEventArgs>(proxy_getCurrentUserInformationCompleted); proxy.LoginCompleted += new EventHandler<myRequirements.ServiceReference1.LoginCompletedEventArgs>(proxy_LoginCompleted); }
public AdminControlUserManager() { // Required to initialize variables InitializeComponent(); proxy = new ServiceReference1.WebServiceClient(); changedUsers = new ObservableCollection<User>(); updateUsersFromProxy(); proxy.getAllUsersCompleted += new EventHandler<myRequirements.ServiceReference1.getAllUsersCompletedEventArgs>(proxy_getAllUsersCompleted); proxy.UpdateUsersCompleted += new EventHandler<myRequirements.ServiceReference1.UpdateUsersCompletedEventArgs>(proxy_UpdateUsersCompleted); InfoMessagePanel.okInfoMessageButotn.Click += new RoutedEventHandler(okInfoMessageButtonErrorOnUpdateUser_Click); QuestionInfoMessageBox.okInfoMessageButotn.Click += new RoutedEventHandler(okMessageClickedDeleteUserOK); QuestionInfoMessageBox.cancelInfoMessageButton.Click += new RoutedEventHandler(cancelInfoMessageButton_Click); proxy.DeleteUserCompleted += new EventHandler<DeleteUserCompletedEventArgs>(proxy_DeleteUserCompleted); InfoMessagePanel.okInfoMessageButotn.Click += new RoutedEventHandler(okInfoMessageButotn_Click2); proxy.OverrideLoginAsCompleted += new EventHandler<OverrideLoginAsCompletedEventArgs>(proxy_OverrideLoginAsCompleted); proxy.getCurrentUserInformationCompleted += new EventHandler<getCurrentUserInformationCompletedEventArgs>(proxy_getCurrentUserInformationCompleted); proxy.GetAllProjectsCompleted += new EventHandler<GetAllProjectsCompletedEventArgs>(proxy_GetAllProjectsCompleted); }
public MainWindowSearch() { // Required to initialize variables InitializeComponent(); proxy = new WebServiceClient(); tmpSelectedList = new List<SearchableData>(); dataSet = new RequirementsAndPatternsAndCategoriesAndPrivRequirements(); searchResult = new List<Data.SearchableData>(); proxy.getAllDataCompleted += new EventHandler<getAllDataCompletedEventArgs>(proxy_getAllDataCompleted); proxy.toggleActiveRequirementCompleted += new EventHandler<toggleActiveRequirementCompletedEventArgs>(proxy_toggleActiveRequirementCompleted); proxy.toggleActivePrivateRequirementCompleted += new EventHandler<toggleActivePrivateRequirementCompletedEventArgs>(proxy_toggleActivePrivateRequirementCompleted); textChangedEventHandler = new TextChangedEventHandler(searchString_TextChanged); searchString.TextChanged += textChangedEventHandler; getAllSearchData(); //Hide info panels hideInfoPanels(); }
public Session() { proxy = new ServiceReference1.WebServiceClient(); SessionID = ""; }
private void registerNewUser(object sender, RoutedEventArgs e) { errorTextBlock.Text = ""; Boolean foundError = false; VisualStateManager.GoToState(this, "VisualState", true); VisualStateManager.GoToState(this, "VisualState2", true); VisualStateManager.GoToState(this, "VisualState4", true); VisualStateManager.GoToState(this, "VisualState6", true); VisualStateManager.GoToState(this, "VisualState8", true); VisualStateManager.GoToState(this, "VisualState10", true); if (fullName.Text.Equals("")) { VisualStateManager.GoToState(this, "VisualState1", true); errorTextBlock.Text += "- You need to set Full name\n"; foundError = true; } if (username.Text.Equals("")) { VisualStateManager.GoToState(this, "VisualState3", true); errorTextBlock.Text += "- You need to set Username\n"; foundError = true; } if (email.Text.Equals("")) { VisualStateManager.GoToState(this, "VisualState5", true); errorTextBlock.Text += "- You need to set e-mail\n"; foundError = true; } if (country.Text.Equals("")) { VisualStateManager.GoToState(this, "VisualState7", true); errorTextBlock.Text += "- You need to set country\n"; foundError = true; } if (password.Password.Equals("")) { VisualStateManager.GoToState(this, "VisualState9", true); errorTextBlock.Text += "- You need to set password\n"; foundError = true; } if (cpassword.Password.Equals("")) { VisualStateManager.GoToState(this, "VisualState9", true); errorTextBlock.Text += "- You need to confirm password\n"; foundError = true; } else{ if(!password.Password.Equals(cpassword.Password)){ VisualStateManager.GoToState(this, "VisualState9", true); errorTextBlock.Text += "- The passwords do not match\n"; foundError = true; } if(password.Password.Length < 8){ VisualStateManager.GoToState(this, "VisualState9", true); errorTextBlock.Text += "- The password needs to be at least 8 characters\n"; foundError = true; } } if (!foundError) { progressBar.Visibility = Visibility.Visible; User user = new User() { Fullname = fullName.Text, Username = username.Text, Password = password.Password, Email = email.Text ,Country = country.Text}; ServiceReference1.WebServiceClient proxy = new ServiceReference1.WebServiceClient(); proxy.CreateNewUserCompleted += new EventHandler<CreateNewUserCompletedEventArgs>(proxy_CreateNewUserCompleted); proxy.CreateNewUserAsync(user); } }