Beispiel #1
0
        private void VenuesControl_Load(object sender, EventArgs e)
        {
            defaultstyle           = new DataGridViewCellStyle();
            defaultstyle.ForeColor = Color.Black;
            addstyle              = new DataGridViewCellStyle();
            addstyle.ForeColor    = Color.DarkGreen;
            changestyle           = new DataGridViewCellStyle();
            changestyle.ForeColor = Color.DarkBlue;

            _queuerForm = Tag as QueuerForm;
            if (_queuerForm != null)
            {
                (Tag as QueuerForm).controlTag.venuesControl = this;

                dataGridViewVenues.AutoGenerateColumns = false;

                _scc = _queuerForm.scc;
                string xml = _queuerForm.controlTag.venuesXml;
                LoadTSCVenues(xml);
            }
            else
            {
                _scc = new SingerDatabase();
            }
        }
Beispiel #2
0
        private void EventsControl_Load(object sender, EventArgs e)
        {
            defaultstyle           = new DataGridViewCellStyle();
            defaultstyle.ForeColor = Color.Black;
            addstyle              = new DataGridViewCellStyle();
            addstyle.ForeColor    = Color.DarkGreen;
            changestyle           = new DataGridViewCellStyle();
            changestyle.ForeColor = Color.DarkBlue;

            _queuerForm = Tag as QueuerForm;
            if (_queuerForm != null)
            {
                _queuerForm.controlTag.eventsControl = this;

                dataGridViewEvents.AutoGenerateColumns = false;

                if (_queuerForm == null || _queuerForm.controlTag == null || _queuerForm.controlTag.singersXml == null || _queuerForm.controlTag.singersXml.Trim().Length == 0)
                {
                    return;
                }
                LoadVenues();
                _scc = _queuerForm.scc;
                string xml = _queuerForm.controlTag.eventsXml;
                LoadTSCEvents(xml);
            }
            else
            {
                _scc = new SingerDatabase();
            }
        }
Beispiel #3
0
        private void QueueControl_Load(object sender, EventArgs e)
        {
            dataGridViewQueue.EnableHeadersVisualStyles = true;

            defaultstyle           = new DataGridViewCellStyle();
            defaultstyle.ForeColor = Color.Black;
            addstyle              = new DataGridViewCellStyle();
            addstyle.ForeColor    = Color.DarkGreen;
            changestyle           = new DataGridViewCellStyle();
            changestyle.ForeColor = Color.DarkBlue;

            stateDefault                 = new DataGridViewCellStyle();
            stateDefault.BackColor       = Color.Green;
            stateStyleFinished           = new DataGridViewCellStyle();
            stateStyleFinished.BackColor = Color.DarkBlue;
            stateStyleGoneHome           = new DataGridViewCellStyle();
            stateStyleGoneHome.BackColor = Color.Black;

            _queuerForm = Tag as QueuerForm;
            dataGridViewQueue.AutoGenerateColumns = false;
            SetSingers();
            if (_queuerForm != null)
            {
                _scc = _queuerForm.scc;
                string xml = "";
                string ix  = Name.Substring(Name.Length - 1, 1);
                switch (ix)
                {
                case "1":
                    (Tag as QueuerForm).controlTag.queueControl1 = this;
                    _round = 1;
                    break;

                case "2":
                    (Tag as QueuerForm).controlTag.queueControl2 = this;
                    _round = 2;
                    break;

                case "3":
                    (Tag as QueuerForm).controlTag.queueControl3 = this;
                    _round = 3;
                    break;

                case "4":
                    (Tag as QueuerForm).controlTag.queueControl4 = this;
                    _round = 4;
                    break;

                case "5":
                    (Tag as QueuerForm).controlTag.queueControl5 = this;
                    _round = 5;
                    break;

                case "6":
                    (Tag as QueuerForm).controlTag.queueControl6 = this;
                    _round = 6;
                    break;
                }
                xml = GetQueue(_round);
                LoadTSCQueue(xml);
                if (_round != 1 && _queuerForm != null)
                {
                    _queuerForm.controlTag.queueControl1.MasterRefresh();
                }
                if (_queuerForm != null)
                {
                    _queuerForm.SetNext();
                }
            }
            else
            {
                _scc = new SingerDatabase();
            }
        }