Exemplo n.º 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);
        }
Exemplo n.º 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);
        }
Exemplo n.º 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);
        }
Exemplo n.º 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);
        }