Merge pull request #1643 from MihaelaStoica/telemetry

CP-22471: Add information on XenCenter help usage to the user settings
This commit is contained in:
Gabor Apati-Nagy 2017-06-13 14:14:08 +01:00 committed by GitHub
commit f413f814a7
4 changed files with 22 additions and 0 deletions

View File

@ -2553,6 +2553,9 @@ namespace XenAdmin
System.Windows.Forms.Help.ShowHelp(helpForm, chm, HelpNavigator.TopicId, topicID);
}
}
// record help usage
Properties.Settings.Default.HelpLastUsed = DateTime.UtcNow.ToString("u");
Settings.TrySaveSettings();
}
public void MainWindow_HelpRequested(object sender, HelpEventArgs hlpevent)

View File

@ -799,5 +799,18 @@ namespace XenAdmin.Properties {
this["DoNotConfirmDismissUpdates"] = value;
}
}
[global::System.Configuration.UserScopedSettingAttribute()]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.Configuration.DefaultSettingValueAttribute("")]
[global::System.Configuration.SettingsManageabilityAttribute(global::System.Configuration.SettingsManageability.Roaming)]
public string HelpLastUsed {
get {
return ((string)(this["HelpLastUsed"]));
}
set {
this["HelpLastUsed"] = value;
}
}
}
}

View File

@ -185,5 +185,8 @@
<Setting Name="DoNotConfirmDismissUpdates" Roaming="true" Type="System.Boolean" Scope="User">
<Value Profile="(Default)">False</Value>
</Setting>
<Setting Name="HelpLastUsed" Roaming="true" Type="System.String" Scope="User">
<Value Profile="(Default)" />
</Setting>
</Settings>
</SettingsFile>

View File

@ -180,6 +180,9 @@
<setting name="DoNotConfirmDismissUpdates" serializeAs="String">
<value>False</value>
</setting>
<setting name="HelpLastUsed" serializeAs="String">
<value />
</setting>
</XenAdmin.Properties.Settings>
</userSettings>