Ejemplo n.º 1
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="regData"></param>
        private void OpenRegistrationWindow(RegistrationData regData)
        {
            RegistrationFormWindow registerWindow = new RegistrationFormWindow();
            var form = registerWindow.RegistrationForm;

            form.DataContext       = regData;
            form.IsEditing         = regData.isEditing;
            form.Foundries         = this.Foundries;
            form.Roles             = this.Roles;
            registerWindow.Closed += new EventHandler(registerWindow_Closed);
            registerWindow.Show();
        }
Ejemplo n.º 2
0
 /// <summary>
 /// Sets the parent window for the current <see cref="RegistrationForm"/>.
 /// </summary>
 /// <param name="window">The window to use as the parent.</param>
 public void SetParentWindow(RegistrationFormWindow window)
 {
     this.parentWindow = window;
 }
Ejemplo n.º 3
0
 /// <summary>
 /// 
 /// </summary>
 /// <param name="regData"></param>
 private void OpenRegistrationWindow(RegistrationData regData)
 {
     RegistrationFormWindow registerWindow = new RegistrationFormWindow();
     var form = registerWindow.RegistrationForm;
     form.DataContext = regData;
     form.IsEditing = regData.isEditing;
     form.Foundries = this.Foundries;
     form.Roles = this.Roles;
     registerWindow.Closed += new EventHandler(registerWindow_Closed);
     registerWindow.Show();
 }