Example #1
0
        public void Load(Customer C, VenObj V, Show S)
        {
            A = V;
            B = S;
            D = C;

            int op = 0;
            venseatLabel.Text = "";
            foreach (instaSeat i in S.Seats)
            {
                if (i.C == Color.Blue)
                {
                    op++;
                    venseatLabel.Text += i.DSP + "\n";
                }
            }

            totalpriceLabel.Text = (S.TikPrice * op).ToString();
            tikpriceLabel.Text = S.TikPrice.ToString();
            vennameLabel.Text = V.VenueName;

            custLabel.Text = C.CombName + " " + C.Phone;
            caddLabel.Text = C.Street + "\n" + C.City + " " + C.State + " " + C.Zip;

            showLabel.Text = S.name;
            dateLabel.Text = S.ShowDate;

            billingLabel.Text = C.CardNum + " " + C.CardType + " " + C.ExpMon + " " + C.ExpYear + " " + C.CVV;
        }
Example #2
0
 public VenObj(VenObj V)
 {
     this.SeatLayout = V.SeatLayout;
     this.AShows = V.AShows;
     this.venname = V.venname;
     this.id = V.id;
 }
Example #3
0
        public void Add(VenObj V)
        {
            //Check for existing record edit or update
            if (this.KnownVen.Exists(item => (item.venname == V.venname)))
            {
                int loc = this.KnownVen.FindIndex(item => (item.venname == V.venname));

                this.KnownVen.RemoveAt(loc);
                this.KnownVen.Insert(loc, V);
            }
            else
            {
                V.id = this.KnownVen.Count;
                this.KnownVen.Add(V);
            }

            this.Save();
        }
Example #4
0
        public void Prep(VenObj V)
        {
            creator = V;
            this.buyButton.Enabled = false;
            this.Controls.Remove(buyButton);
            vennameLabel.Text = V.VenueName;

            ressampButton.ForeColor = Color.Red;
            ressampButton.BackColor = Color.DarkRed;
            opensampButton.ForeColor = Color.Green;
            stagesampButton.BackColor = Color.Yellow;

            foreach (instaSeat b in V.SeatLayout)
            {
                if (b.DSP != "Stage")
                {
                    Button a = new Button();
                    a.Size = b.S;
                    a.Location = b.P;
                    a.Text = b.DSP;
                    a.Show();
                    this.Controls.Add(a);
                    a.Click += instaButton_Click;
                }
                else
                {
                    Button s = new Button();
                    s.Size = b.S;
                    s.Location = b.P;
                    s.Text = "Stage";
                    s.Enabled = false;
                    s.BackColor = Color.Yellow;
                    this.Controls.Add(s);
                    s.Show();
                }
            }
        }
Example #5
0
        public void Prep(VenObj V, Show S)
        {
            creator = V;
            subcreate = S;

            showLabel.Text = S.name;
            vennameLabel.Text = V.VenueName;

            ressampButton.ForeColor = Color.Red;
            ressampButton.BackColor = Color.DarkRed;
            opensampButton.ForeColor = Color.Green;
            stagesampButton.BackColor = Color.Yellow;

            foreach (instaSeat b in V.AShows.Find(item => item.Id == S.Id).Seats)
            {
                if (b.DSP != "Stage")
                {
                    Button a = new Button();
                    a.Size = b.S;
                    a.Location = b.P;
                    a.Text = b.DSP;
                    a.Show();
                    this.Controls.Add(a);
                    a.Click += instaButton_Click;
                    if (b.C == Color.Blue || b.C == Color.Red)
                        a.BackColor = b.C;
                }
                else
                {
                    Button s = new Button();
                    s.Size = b.S;
                    s.Location = b.P;
                    s.Text = "Stage";
                    s.Enabled = false;
                    s.BackColor = Color.Yellow;
                    this.Controls.Add(s);
                    s.Show();
                }
            }
        }
Example #6
0
        //Debug Routine
        public void demoload()
        {
            VenObj demo = new VenObj();
            demo.id = KnownVen.Count;
            demo.venname = "Cavern On The Green";

            int seat = 0, row = 0;

            for (int i = 50; i < 550; i += 30)      //X
            {
                for (int j = 25; j < 500; j += 50)   //Y
                {
                    instaSeat a = new instaSeat();
                    a.DSP = seat.ToString() + ", " + row.ToString();
                    a.P = new Point(j,i);

                    demo.SeatLayout.Add(a);
                    seat++;
                }
                seat = 0;
                row++;
            }
            instaSeat stage = new instaSeat();
            stage.DSP = "Stage";
            stage.S = new Size(100, 50);
            stage.P = new Point(225, 600);

            demo.SeatLayout.Add(stage);

            this.KnownVen.Add(demo);
        }