{"metadata":{"image":[],"title":"","description":""},"api":{"url":"","auth":"required","results":{"codes":[]},"settings":"","params":[]},"next":{"description":"","pages":[]},"title":"Configure Feedback Reporting","type":"basic","slug":"add-feedback","excerpt":"","body":"1. Take the steps described in [Integrate DevMateKit](doc:integrate-devmatekit) if you haven't done it yet.\n2. You can specify additional `DMFrameworkSettings` properties if needed. DevMate Feedback provides the following configuration options:\n[block:parameters]\n{\n \"data\": {\n \"h-0\": \"Property\",\n \"h-1\": \"Type\",\n \"h-2\": \"Description\",\n \"0-0\": \"`IsBeta`\",\n \"0-1\": \"bool\",\n \"0-2\": \"Specifies whether a current version of the application is Beta.\",\n \"1-0\": \"`ApplicationSettings`\",\n \"1-1\": \"Dictionary<string,string>\",\n \"1-2\": \"Application settings that must be sent with feedback data.\",\n \"2-0\": \"`AdditionalInfromation`\",\n \"2-1\": \"string\",\n \"2-2\": \"Additional information that must be sent with feedback data.\",\n \"3-0\": \"`ApplicationIcon`\",\n \"3-1\": \"string\",\n \"3-2\": \"Sets a “TitleBar” icon for DevMate Framework windows. Must contain at least one 16x16pt icon. Example: *pack://application:,,,/TestApp;component/icon.ico*.\",\n \"4-2\": \"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.\",\n \"5-2\": \"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.\",\n \"4-1\": \"string\",\n \"5-1\": \"string\",\n \"5-0\": \"`Logs`\",\n \"4-0\": \"`LogFilePath`\"\n },\n \"cols\": 3,\n \"rows\": 6\n}\n[/block]\nFor example:\n[block:code]\n{\n \"codes\": [\n {\n \"code\": \"DMFeedbackFrameworkSettings.ApplicationSettings.Add(\\\"Setting1\\\", \\\"Value1\\\");\\nDMFeedbackFrameworkSettings.ApplicationSettings.Add(\\\"Language\\\", \\\"en\\\");\\nDMFeedbackFrameworkSettings.ApplicationSettings.Add(\\\"AppRunCount\\\", 0);\\nDMFeedbackFrameworkSettings.ApplicationSettings.Add(\\\"Setting2\\\", \\\"Value2\\\"); \\n\\nDMFeedbackFrameworkSettings.LogFilePath = :::at:::\\\"C:\\\\Program Files\\\\AppName\\\\Logs\\\\logfile.log\\\"; \\nDMFeedbackFrameworkSettings.AdditionalInformation = \\\"Version with hidden feature”;\",\n \"language\": \"csharp\"\n }\n ]\n}\n[/block]\nTo open the Feedback window, use the following code snippet:\n[block:code]\n{\n \"codes\": [\n {\n \"code\": \"DMFeedbackWindowController.BigIconSource = \\\"pack://application:,,,/Images/icon.png\\\"; \\nDMFeedbackWindowController.ShowDialog();\",\n \"language\": \"csharp\"\n }\n ]\n}\n[/block]\nThe `ShowDialog` method has the following overloads:\n[block:code]\n{\n \"codes\": [\n {\n \"code\": \"DMFeedbackWindowController.ShowDialog(FeedbackTypes.Feedback); \\n// Default - will run Feedback Windows with \\\"Feedback\\\" in ComboBox \\n\\nDMFeedbackWindowController.ShowDialog(FeedbackTypes.BugReport); \\n// Runs Feedback Windows with \\\"Bug Report\\\" in ComboBox \\n\\nDMFeedbackWindowController.ShowDialog(FeedbackTypes.SupportRequest);\\n// Runs Feedback Windows with \\\"Support Request\\\" in ComboBox\",\n \"language\": \"csharp\"\n }\n ]\n}\n[/block]","updates":[],"order":4,"isReference":false,"hidden":false,"sync_unique":"","link_url":"","link_external":false,"_id":"591f17b021d2ff0f00cf5a4d","githubsync":"","category":{"sync":{"isSync":false,"url":""},"pages":[],"title":"Get Started: Windows Apps","slug":"getting-started-windows-framework","order":2,"from_sync":false,"reference":false,"_id":"591f17af21d2ff0f00cf5a41","createdAt":"2016-07-21T09:47:49.247Z","__v":0,"project":"547cd7662eaee50800ed1089","version":"591f17ae21d2ff0f00cf5a3f"},"user":"547cd6ac78fd57080023ca99","version":{"version":"1.0.1","version_clean":"1.0.1","codename":"","is_stable":true,"is_beta":false,"is_hidden":false,"is_deprecated":false,"categories":["591f17af21d2ff0f00cf5a40","591f17af21d2ff0f00cf5a41","591f17af21d2ff0f00cf5a42","591f17af21d2ff0f00cf5a43","591f17af21d2ff0f00cf5a44","591f17af21d2ff0f00cf5a45","591f17af21d2ff0f00cf5a46","591f17af21d2ff0f00cf5a47","591f17af21d2ff0f00cf5a48","60805d13afe7e7003acde2f9"],"_id":"591f17ae21d2ff0f00cf5a3f","createdAt":"2017-05-19T16:05:02.775Z","__v":2,"project":"547cd7662eaee50800ed1089","releaseDate":"2017-05-19T16:05:02.775Z"},"createdAt":"2016-07-21T16:25:20.824Z","parentDoc":null,"project":"547cd7662eaee50800ed1089","__v":0}