Ejemplo n.º 1
0
        private void Save_click(object sender, RoutedEventArgs e)
        {
            if (user != Name_text.Text)
            {
                db.saveUserNameChanges(user, Name_text.Text);
            }
            if (Pass.Password != String.Empty && Name_text.Text.Length >= 5)
            {
                db.saveUserPassChanges(user, Pass.Password);
            }
            DataChangedEventHandler handler = DataChanged;

            if (handler != null)
            {
                handler(this, new EventArgs());
            }

            this.Close();
        }