1. Take the steps described in Integrate DevMateKit if you haven't done it yet.
  2. You can specify additional DMFrameworkSettings properties if needed. DevMate Feedback provides the following configuration options:

Property

Type

Description

IsBeta

bool

Specifies whether a current version of the application is Beta.

ApplicationSettings

Dictionary<string,string>

Application settings that must be sent with feedback data.

AdditionalInfromation

string

Additional information that must be sent with feedback data.

ApplicationIcon

string

Sets a “TitleBar” icon for DevMate Framework windows. Must contain at least one 16x16pt icon. Example: pack://application:,,,/TestApp;component/icon.ico.

LogFilePath

string

Path to a log file (if there is a number of log files, it sends only the recently used). If a value is null or empty, or file does not exist, then the Framework tries to load a file from the Logs property.

Logs

string

Used to set up specific logs if a LogFilePath value is null or empty. If a Logs value is null or empty, an empty string is sent to the server.

For example:

DMFeedbackFrameworkSettings.ApplicationSettings.Add("Setting1", "Value1");
DMFeedbackFrameworkSettings.ApplicationSettings.Add("Language", "en");
DMFeedbackFrameworkSettings.ApplicationSettings.Add("AppRunCount", 0);
DMFeedbackFrameworkSettings.ApplicationSettings.Add("Setting2", "Value2"); 

DMFeedbackFrameworkSettings.LogFilePath = @"C:\Program Files\AppName\Logs\logfile.log"; 
DMFeedbackFrameworkSettings.AdditionalInformation = "Version with hidden feature”;

To open the Feedback window, use the following code snippet:

DMFeedbackWindowController.BigIconSource = "pack://application:,,,/Images/icon.png"; 
DMFeedbackWindowController.ShowDialog();

The ShowDialog method has the following overloads:

DMFeedbackWindowController.ShowDialog(FeedbackTypes.Feedback); 
// Default - will run Feedback Windows with "Feedback" in ComboBox 

DMFeedbackWindowController.ShowDialog(FeedbackTypes.BugReport); 
// Runs Feedback Windows with "Bug Report" in ComboBox 

DMFeedbackWindowController.ShowDialog(FeedbackTypes.SupportRequest);
// Runs Feedback Windows with "Support Request" in ComboBox