Exemplo n.º 1
0
        public EventCreator(EventForm eventForm)
        {
            InitializeComponent();
            this.eventForm = eventForm;

            CheckIfFinished();
        }
Exemplo n.º 2
0
        public EventCreator(EventForm eventForm, EventTemplate t)
            : this(eventForm)
        {
            editTemplate          = t;
            textBoxID.Text        = editTemplate.ID.ToString();
            textBoxName.Text      = editTemplate.Name;
            colorButton.BackColor = System.Drawing.Color.FromArgb((int)(255 * t.Color.R), (int)(255 * t.Color.G), (int)(255 * t.Color.B));

            id    = editTemplate.ID;
            name  = editTemplate.Name;
            color = editTemplate.Color;

            CheckIfFinished();
        }