Esempio n. 1
0
        private void InitialUpdate()
        {
            // 初始化事件类型、事件级别
            var customDescriptors = new List <EnumUtility.IEnumFieldDescriptor>();

            customDescriptors.Add(EnumUtility.CreateDescriptor("choose", 0xFF, "--请选择--"));
            cmbEventLevel.BindEnum(customDescriptors, false, new EventLevel[] { EventLevel.None });
            cmbEventType.BindEnum(customDescriptors, false, new EventType[] { EventType.None });
        }
        private void InitialUpate()
        {
            var customDescriptors = new List <EnumUtility.IEnumFieldDescriptor>();

            customDescriptors.Add(EnumUtility.CreateDescriptor("choose", 0xFF, "--请选择--"));

            // 初始化执行类型
            cbxExecuteMode.SelectedIndex = 0;

            // 初始化操作类型
            cmbOperateType.BindEnum(customDescriptors, false, new List <OperationType>()
            {
                OperationType.None
            });
        }