Ejemplo n.º 1
0
        public bool ShowRollTextDesign(RollTextModuleDesign rollTextDesign, IWin32Window owner)
        {
            _isOk = false;

            _rollTextDesign = rollTextDesign;

            this.ShowDialog(owner);

            return(_isOk);
        }
Ejemplo n.º 2
0
        protected override void ReloadCustomDesign(string customContext)
        {
            if (string.IsNullOrEmpty(customContext))
            {
                return;
            }

            _rollTextDesign = JsonHelper.DeserializeObject <RollTextModuleDesign>(customContext);

            LoadDesign();
        }
Ejemplo n.º 3
0
        public RollTextControl()
        {
            InitializeComponent();

            _rollTextDesign = new RollTextModuleDesign();

            _rollTextDesign.BackColor    = this.BackColor;
            _rollTextDesign.ForeColor    = this.ForeColor;
            _rollTextDesign.FontName     = this.Font.Name;
            _rollTextDesign.IsBold       = this.Font.Bold;
            _rollTextDesign.IsItalic     = this.Font.Italic;
            _rollTextDesign.FontSize     = this.Font.Size;
            _rollTextDesign.RollDistance = 1;
            _rollTextDesign.RollSpeed    = 50;
            _rollTextDesign.RollText     = "";
        }