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 Show(Show S)
 {
     this.name = S.name;
     this.Seats = S.Seats;
     this.Id = S.Id;
     this.Date = S.Date;
     this.description = S.description;
     this.TikPrice = S.TikPrice;
 }
Example #3
0
        public void Add(Show S)
        {
            //Check for existing record edit or update
            if (this.KnownShows.Exists(item => (item.name == S.name && item.Date == S.Date)))
            {
                int loc = this.KnownShows.FindIndex(item => (item.name == S.name && item.Date == S.Date));

                this.KnownShows.RemoveAt(loc);
                this.KnownShows.Insert(loc, S);
            }
            else
            {
                S.Id = this.KnownShows.Count;
                this.KnownShows.Add(S);
            }

            this.Save();
        }
Example #4
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 #5
0
 public void AddShow(Show S)
 {
     S.Seats = SeatLayout;
     AShows.Add(S);
 }