Example #1
0
 private void ExecuteCommandEditFactionDescription(bool isPrivateDescription)
 {
     BbTextEditorHelper.ClientOpenTextEditor(
         originalText: isPrivateDescription
                           ? this.factionPrivateState.DescriptionPrivate
                           : this.factionPrivateState.DescriptionPublic,
         maxLength: isPrivateDescription
                        ? FactionSystem.MaxDescriptionLengthPrivate
                        : FactionSystem.MaxDescriptionLengthPublic,
         windowHeight: isPrivateDescription
                           ? 450
                           : 200,
         onSave: text => FactionSystem.ClientOfficerSetFactionDescription(text, isPrivateDescription));
 }