Exemplo n.º 1
0
        /// <summary>
        /// Constructeur principal
        /// </summary>
        public CharacterConditions()
        {
            InitializeComponent();

            //Character speed
            ddpSpeed.DataSource    = FormsTools.GetMovementsSpeedList();
            ddpSpeed.DisplayMember = "Title";
            ddpSpeed.ValueMember   = "Id";

            //Animation frequency
            ddpFrequency.DataSource    = FormsTools.GetAnimationFrequencyList();
            ddpFrequency.DisplayMember = "Title";
            ddpFrequency.ValueMember   = "Id";
        }
Exemplo n.º 2
0
        /// <summary>
        /// Constructeur principal
        /// </summary>
        public AnimationsConditions()
        {
            InitializeComponent();
            TriggerExecutionTypeCombo.SelectedValueChanged -= new EventHandler(EventManager_TriggerExecutionTypeChanged);

            //Binding des Descriptions d'Enumeration sur la ComboBox
            TriggerExecutionTypeCombo.DataSource    = typeof(Enums.TriggerExecutionType).ToList();
            TriggerExecutionTypeCombo.DisplayMember = "Value";
            TriggerExecutionTypeCombo.ValueMember   = "Key";

            //Animation frequency
            ddpSpeed.DataSource    = FormsTools.GetAnimationFrequencyList();
            ddpSpeed.DisplayMember = "Title";
            ddpSpeed.ValueMember   = "Id";
        }
 /// <summary>
 /// Constructeur principal
 /// </summary>
 public GeneralSettings()
 {
     InitializeComponent();
     ddpMessageDuration.Minimum                 = GlobalConstants.DIALOG_MIN_DURATION;
     ddpMessageDuration.Maximum                 = GlobalConstants.DIALOG_MAX_DURATION;
     ddpMessageFontSize.DataSource              = FormsTools.GetMessageFontSizeList();
     ddpMessageFontSize.DisplayMember           = "Title";
     ddpMessageFontSize.ValueMember             = "Id";
     ddpStagePadding.Minimum                    = 0;
     ddpStagePadding.Maximum                    = GlobalConstants.STAGE_PADDING_LIMIT;
     ddpVectorPointsSize.Minimum                = 1;
     ddpVectorPointsSize.Maximum                = 10;
     ddpAnimationDefaultFrequency.DataSource    = FormsTools.GetAnimationFrequencyList();
     ddpAnimationDefaultFrequency.DisplayMember = "Title";
     ddpAnimationDefaultFrequency.ValueMember   = "Id";
     ddpTransparentBlockSize.Items.Add(8);
     ddpTransparentBlockSize.Items.Add(16);
     ddpTransparentBlockSize.Items.Add(32);
 }