private void Button_Click(object sender, RoutedEventArgs e) { ClsLogin _objLogin = new ClsLogin(); _objLogin.Model.LoginUserName = T1.Text; _objLogin.Model.LoginPassword = T2.Text; _objLogin.SaveLogin(); //this.Close(); }