예제 #1
0
        private void button4_Click(object sender, EventArgs e)
        {
            changeTxt = false;
            SelectedProductPopup obj = new SelectedProductPopup(this);

            obj.ShowDialog();
        }
예제 #2
0
        private void dataGridView1_CellContentClick(object sender, DataGridViewCellEventArgs e)
        {
            if (e.RowIndex < 0)
            {
                return;
            }
            else if (e.ColumnIndex == colSearckPro)
            {
                SelectedProductPopup obj = new SelectedProductPopup(this);
                obj.ShowDialog();
                //var code = dataGridView1.Rows[e.RowIndex].Cells[colCode].Value;
                //if (code == null)
                //{
                //    return;
                //}
            }

            //switch (e.ColumnIndex)
            //{
            //    case 2:
            //        var code = dataGridView1.Rows[e.RowIndex].Cells[colCode].Value;
            //        if (code == null)
            //        {
            //            MessageBox.Show("กรุณาคีย์บาร์โค้ดก่อน");
            //            return;
            //        }
            //        //dataGridView1.Rows[e.RowIndex].Cells[colCode].Value = "11";

            //        SelectedProductPopup obj = new SelectedProductPopup(this);
            //        obj.ShowDialog();
            //        break;
            //}
        }
예제 #3
0
        private void buttonSearchProduct_Click(object sender, EventArgs e)
        {
            List <ProductDetails> list = SingletonProduct.Instance().ProductDetails.Where(w => w.Enable == true).ToList();
            SelectedProductPopup  obj  = new SelectedProductPopup(this, list, 1);

            obj.ShowDialog();
        }
 /// <summary>
 /// cell click เพื่อค้นหา
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void dataGridView1_CellClick(object sender, DataGridViewCellEventArgs e)
 {
     if (e.ColumnIndex == colSearch && e.RowIndex > -1)
     {
         SelectedProductPopup obj = new SelectedProductPopup(this);
         obj.ShowDialog();
     }
 }
 /// <summary>
 /// grid 2 click
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void dataGridView2_CellClick(object sender, DataGridViewCellEventArgs e)
 {
     if (e.RowIndex < 0)
     {
         return;
     }
     if (e.ColumnIndex == 1)
     {
         SelectedProductPopup obj = new SelectedProductPopup(this, 2);
         obj.ShowDialog();
     }
 }
예제 #6
0
        /// <summary>
        /// คลิ๊ก เลือกสินค้า
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void dataGridView1_CellClick(object sender, DataGridViewCellEventArgs e)
        {
            switch (e.ColumnIndex)
            {
            case 2:
                SelectedProductPopup obj = new SelectedProductPopup(this);
                obj.ShowDialog();
                break;

            default:
                break;
            }
        }
 /// <summary>
 /// Click Search Product
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void dataGridView1_CellContentClick(object sender, DataGridViewCellEventArgs e)
 {
     if (e.RowIndex < 0)
     {
         return;
     }
     switch (e.ColumnIndex)
     {
         case 1:
             // show dialog products
             //DialogWindowsProducts objInstance = new DialogWindowsProducts(this);
             //objInstance.ShowDialog();
             SelectedProductPopup obj = new SelectedProductPopup(this);
             obj.ShowDialog();
             break;
     }
 }
        private void dataGridView1_CellClick(object sender, DataGridViewCellEventArgs e)
        {
            try
            {
                this.row = e.RowIndex;
                switch (e.ColumnIndex)
                {
                case 2:
                    SelectedProductPopup obj = new SelectedProductPopup(this);
                    obj.ShowDialog();
                    break;

                default:
                    break;
                }
            }
            catch (Exception)
            {
            }
        }
        /// <summary>
        /// Click DataGrid1
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>

        private void dataGridView1_CellClick(object sender, DataGridViewCellEventArgs e)
        {
            if (e.RowIndex < 0)
            {
                return;
            }
            switch (e.ColumnIndex)
            {
            case 2:
                SelectedProductPopup obj = new SelectedProductPopup(this);
                obj.ShowDialog();
                break;

            case 9:
                SelectedShelfPopup shelf = new SelectedShelfPopup(this);
                shelf.ShowDialog();
                break;

            default:
                break;
            }
        }
예제 #10
0
        private void button2_Click(object sender, EventArgs e)
        {
            SelectedProductPopup obj = new SelectedProductPopup(this);

            obj.ShowDialog();
        }