Example #1
0
        public void RecordDateTimePicker(AppUsageContext context, AppUsageOperation operation, string details = null)
        {
            if (context == null)
            {
                throw new ArgumentNullException(nameof(context));
            }
            if (operation == null)
            {
                throw new ArgumentNullException(nameof(operation));
            }

            this.Record(context, operation, ControlType.DateTimePicker, details);
        }
Example #2
0
        public void Record(AppUsageContext context, AppUsageOperation operation, ControlType controlType, string details = null)
        {
            if (context == null)
            {
                throw new ArgumentNullException(nameof(context));
            }
            if (operation == null)
            {
                throw new ArgumentNullException(nameof(operation));
            }

            // TODO : !!!
            long deviceId = -1;
            var  username = @"Username";
            var  version  = @"Version";

            //var appUsage = new AppUsage(context.Name, operation.Name, controlType, details ?? string.Empty, DateTime.Now, username, version, deviceId);
            //this.Adapter.Insert(appUsage);
        }
Example #3
0
        public void RecordDateTimePicker(AppUsageContext context, AppUsageOperation operation, string details = null)
        {
            if (context == null) throw new ArgumentNullException(nameof(context));
            if (operation == null) throw new ArgumentNullException(nameof(operation));

            this.Record(context, operation, ControlType.DateTimePicker, details);
        }
Example #4
0
        public void Record(AppUsageContext context, AppUsageOperation operation, ControlType controlType, string details = null)
        {
            if (context == null) throw new ArgumentNullException(nameof(context));
            if (operation == null) throw new ArgumentNullException(nameof(operation));

            // TODO : !!!
            long deviceId = -1;
            var username = @"Username";
            var version = @"Version";

            //var appUsage = new AppUsage(context.Name, operation.Name, controlType, details ?? string.Empty, DateTime.Now, username, version, deviceId);
            //this.Adapter.Insert(appUsage);
        }