Beispiel #1
0
        string getTelemetryString()
        {
            bool homeOffice          = Properties.Settings.Default.IsHomeOfficeDetectionOn;
            bool deskBandIsMonthType = Properties.Settings.Default.DeskBandShowsMonthBalance;
            bool deskBandIsShown     = DeskBandFinder.FindTimeMergeDeskBandWindow() != IntPtr.Zero;

            var data = new TelemetryData();

            data.Add("HomeOffice", homeOffice ? "yes" : "no");
            data.Add("DeskBandType", deskBandIsMonthType ? "month" : "day");
            data.Add("DeskBandShown", deskBandIsShown ? "yes" : "no");
            return(data.Serialize());
        }