Пример #1
0
        public MyCartForm(DataTable dt, Account a, MainGUI m, AlbumGUI agui)
        {
            InitializeComponent();

            this.m    = m;
            this.a    = a;
            this.agui = agui;
            this.dt   = dt;
            foreach (DataRow dr in dt.Rows)
            {
                numberOfCart += int.Parse(dr["amount"].ToString());
            }
            lbNumberCart.Text        = numberOfCart.ToString();
            dataGridView1.DataSource = dt;
            displayPanel(1);
        }
Пример #2
0
        private void AlbumToolStripMenuItem_Click(object sender, EventArgs e)
        {
            AlbumGUI f = new AlbumGUI(this);

            embed(toolStripContainer1.ContentPanel, f);
        }