Class mmApp

Application class for Markdown Monster that provides a global static placeholder for configuration and some utility functions

System.Object
  MarkdownMonster.mmApp
public class mmApp : object

Class Members

MemberDescription

Constructor

ApplicationStart

public static void ApplicationStart()

DecryptString

Decrypts a string encrypted with EncryptString()

public static string DecryptString(string encrypted,     bool? dontUseMachineKey)

EncryptString

Encrypts sensitive user data using an internally generated encryption key.

public static string EncryptString(string value,     bool? dontUseMachineKey)

GetDocumentionUrl

Returns a fully qualified Help URL to a topic in the online documentation based on a topic id.

public static string GetDocumentionUrl(string topic)

GetVersion

Gets the Markdown Monster Version as a string

public static string GetVersion()

GetVersionDate

public static string GetVersionDate()

GetVersionForDisplay

Returns a formatted string value for the version.

public static string GetVersionForDisplay(string version)

HandleApplicationException

Handles an Application level exception by logging the error to log, and displaying an error message to the user. Also sends the error to server if enabled.

Returns true if application should continue, false to exit.

public static bool HandleApplicationException(Exception ex,     ApplicationErrorModes errorMode)

Log

Logs exceptions in the applications

public static void Log(Exception ex)

public static void Log(string msg,     Exception ex,     bool unhandledException)

LogLocal

This method logs only to the local file, not to the online telemetry. Use primarily for informational messages and errors.

public static void LogLocal(string msg,     Exception ex)

SendTelemetry

Sends usage information to server

public static void SendTelemetry(string operation,     string data)

SetTheme

Sets the light or dark theme for a form. Call before InitializeComponents().

We only support the dark theme now so this no longer relevant but left in place in case we decide to support other themes.

public static void SetTheme(Themes theme,     MetroWindow window)

SetThemeWindowOverride

Overrides specific theme colors in the window header

public static void SetThemeWindowOverride(MetroWindow window)

SetWorkingSet

public static void SetWorkingSet(int lnMaxSize,     int lnMinSize)

Shutdown

public static void Shutdown(bool errorShutdown)

Trace

Writes a trace message

public void Trace(string msg)

AllowedFileExtensions

ApplicationName

The full name of the application displayed on toolbar and dialogs

Configuration

Holds a static instance of the application's configuration settings

EncryptionMachineKey

Returns a machine specific encryption key that can be used for passwords and other settings.

If the Configuration.UseMachineEcryptionKeyForPasswords flag is false, no machine specific information is added to the key. Do this if you want to share your encrypted configuration settings in cloud based folders like DropBox, OneDrive, etc.

Model

Holds a static instance of the Application Model

Started

Urls

Application related Urls used throughout the application

Requirements

Namespace: MarkdownMonster
Assembly: markdownmonster.exe

© West Wind Technologies, 2019 • Updated: 01/06/19
Comment or report problem with topic