public void Save(BinaryWriter writer)
        {
            // Get policy from main window
            PasswordPolicy policy = PasswordPolicy.GetFromWindow(MainWindow);

            // Write policy settings to stream
            policy.Write(writer);
        }