예제 #1
0
파일: Tekstil.cs 프로젝트: kirneh/MyData
        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);
            }
        }
예제 #2
0
파일: Main.cs 프로젝트: kirneh/MyData
        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;
            }
        }