{"_id":"591f17b021d2ff0f00cf5a4d","category":{"_id":"591f17af21d2ff0f00cf5a41","__v":0,"project":"547cd7662eaee50800ed1089","version":"591f17ae21d2ff0f00cf5a3f","sync":{"url":"","isSync":false},"reference":false,"createdAt":"2016-07-21T09:47:49.247Z","from_sync":false,"order":1,"slug":"getting-started-windows-framework","title":"Get Started: Windows Apps"},"user":"547cd6ac78fd57080023ca99","version":{"_id":"591f17ae21d2ff0f00cf5a3f","__v":1,"project":"547cd7662eaee50800ed1089","createdAt":"2017-05-19T16:05:02.775Z","releaseDate":"2017-05-19T16:05:02.775Z","categories":["591f17af21d2ff0f00cf5a40","591f17af21d2ff0f00cf5a41","591f17af21d2ff0f00cf5a42","591f17af21d2ff0f00cf5a43","591f17af21d2ff0f00cf5a44","591f17af21d2ff0f00cf5a45","591f17af21d2ff0f00cf5a46","591f17af21d2ff0f00cf5a47","591f17af21d2ff0f00cf5a48"],"is_deprecated":false,"is_hidden":false,"is_beta":false,"is_stable":true,"codename":"","version_clean":"1.0.1","version":"1.0.1"},"parentDoc":null,"project":"547cd7662eaee50800ed1089","__v":0,"updates":[],"next":{"pages":[],"description":""},"createdAt":"2016-07-21T16:25:20.824Z","link_external":false,"link_url":"","githubsync":"","sync_unique":"","hidden":false,"api":{"results":{"codes":[]},"settings":"","auth":"required","params":[],"url":""},"isReference":false,"order":17,"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]","excerpt":"","slug":"add-feedback","type":"basic","title":"Configure Feedback Reporting"}

Configure Feedback Reporting


1. Take the steps described in [Integrate DevMateKit](doc: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: [block:parameters] { "data": { "h-0": "Property", "h-1": "Type", "h-2": "Description", "0-0": "`IsBeta`", "0-1": "bool", "0-2": "Specifies whether a current version of the application is Beta.", "1-0": "`ApplicationSettings`", "1-1": "Dictionary<string,string>", "1-2": "Application settings that must be sent with feedback data.", "2-0": "`AdditionalInfromation`", "2-1": "string", "2-2": "Additional information that must be sent with feedback data.", "3-0": "`ApplicationIcon`", "3-1": "string", "3-2": "Sets a “TitleBar” icon for DevMate Framework windows. Must contain at least one 16x16pt icon. Example: *pack://application:,,,/TestApp;component/icon.ico*.", "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.", "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.", "4-1": "string", "5-1": "string", "5-0": "`Logs`", "4-0": "`LogFilePath`" }, "cols": 3, "rows": 6 } [/block] For example: [block:code] { "codes": [ { "code": "DMFeedbackFrameworkSettings.ApplicationSettings.Add(\"Setting1\", \"Value1\");\nDMFeedbackFrameworkSettings.ApplicationSettings.Add(\"Language\", \"en\");\nDMFeedbackFrameworkSettings.ApplicationSettings.Add(\"AppRunCount\", 0);\nDMFeedbackFrameworkSettings.ApplicationSettings.Add(\"Setting2\", \"Value2\"); \n\nDMFeedbackFrameworkSettings.LogFilePath = @\"C:\\Program Files\\AppName\\Logs\\logfile.log\"; \nDMFeedbackFrameworkSettings.AdditionalInformation = \"Version with hidden feature”;", "language": "csharp" } ] } [/block] To open the Feedback window, use the following code snippet: [block:code] { "codes": [ { "code": "DMFeedbackWindowController.BigIconSource = \"pack://application:,,,/Images/icon.png\"; \nDMFeedbackWindowController.ShowDialog();", "language": "csharp" } ] } [/block] The `ShowDialog` method has the following overloads: [block:code] { "codes": [ { "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", "language": "csharp" } ] } [/block]