public static Config Config() { var xconfig = XFactory.XConfig(); var config = Config(xconfig); return(config); }
private void PasswordButton_Click(object sender, RoutedEventArgs e) { var md5 = XFactory.MD5Hash(PasswordTextBox.Text); var user = UsersComboBox.SelectedItem as User; user.Option.Pass = md5; MD5PasswordTextBox.GetBindingExpression(TextBox.TextProperty).UpdateTarget(); }
public static void Save(this Config config) { XFactory.XConfig(config).Save(); }