Beispiel #1
0
        public Tekstil(Main ma)
        {
            InitializeComponent();
            this.ma = ma;
            btnMake.Select();
            btnMake.Focus();

            try
            {
                dataGridView1.DataSource = tool.SqlAdapter("Name, Color, Size, Gender, Family, SKU, Price, Description, Type", "Tekstil.Content", string.Empty);
            }
            catch (Exception ex)
            {
                MessageBox.Show("Error\n" + ex.Message, "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
            }
        }
Beispiel #2
0
        private void imgDescription_Click(object sender, EventArgs e)
        {
            Main m = new Main();

            m.Size = new System.Drawing.Size(m.Width, m.Height);

            if (!dc)
            {
                this.imgDescription.Image = Properties.Resources.triangle_up;
                imgDescription.Update();
                m.Height = 478;
                dc = true;
            }
            else
            {
                this.imgDescription.Image = Properties.Resources.triangle_down;
                imgDescription.Update();
                m.Height = 332;
                m.Update();
                dc = false;
            }
        }