{"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":"5790f7708242580e00fc2b5f","category":{"sync":{"isSync":false,"url":""},"pages":[],"title":"Get Started: Windows Apps","slug":"getting-started-windows-framework","order":1,"from_sync":false,"reference":false,"_id":"57909a453b845d0e006a37d5","project":"547cd7662eaee50800ed1089","__v":0,"createdAt":"2016-07-21T09:47:49.247Z","version":"547cd7662eaee50800ed108c"},"createdAt":"2016-07-21T16:25:20.824Z","githubsync":"","user":"547cd6ac78fd57080023ca99","parentDoc":null,"project":"547cd7662eaee50800ed1089","__v":0,"version":{"version":"1.0","version_clean":"1.0.0","codename":"","is_stable":false,"is_beta":false,"is_hidden":false,"is_deprecated":true,"categories":["547cd7672eaee50800ed108d","54c8f8ae0174630d00efa874","54c8f8bd7a11f60d0022a832","54c8f8c60174630d00efa876","54c8f8f10174630d00efa877","55155826bc466623002afe83","551558324c7c1e39003735a0","56052058e266000d008971c7","57909a453b845d0e006a37d5"],"_id":"547cd7662eaee50800ed108c","createdAt":"2014-12-01T21:02:30.851Z","project":"547cd7662eaee50800ed1089","releaseDate":"2014-12-01T21:02:30.851Z","__v":9}}