Esempio n. 1
0
        /// <summary>
        /// Displays specified options data.
        /// </summary>
        protected override void DisplayOptionsData(ICustomRuleOptionsData data)
        {
            LastLineOptionsData options = (LastLineOptionsData)data;

            radioEmpty.Checked    = options.Mode == LastLineMode.Empty;
            radioNotEmpty.Checked = options.Mode == LastLineMode.NotEmpty;
        }
Esempio n. 2
0
        /// <summary>
        /// Gets options data from user interface.
        /// </summary>
        protected override void ParseOptionsData(ICustomRuleOptionsData data)
        {
            LastLineOptionsData options = (LastLineOptionsData)data;

            if (radioEmpty.Checked)
            {
                options.Mode = LastLineMode.Empty;
            }
            else if (radioNotEmpty.Checked)
            {
                options.Mode = LastLineMode.NotEmpty;
            }
        }