예제 #1
0
        private void btn_product_price_Click(object sender, EventArgs e)
        {
            Control ctls = this.Parent;
            Stock_Product_Sellprice cl = new Stock_Product_Sellprice();

            ctls.Controls.Clear();
            ctls.Controls.Add(cl);
        }
예제 #2
0
 private void dataGridView1_CellClick(object sender, DataGridViewCellEventArgs e)
 {
     if (e.ColumnIndex == dataGridView1.Columns["col_edit"].Index)
     {
         sell_id = Convert.ToInt32(dataGridView1.CurrentRow.Cells["col_sellid"].Value.ToString());
         Control ctls = this.Parent;
         Stock_Product_Sellprice cl = new Stock_Product_Sellprice();
         ctls.Controls.Clear();
         ctls.Controls.Add(cl);
     }
 }