/// <summary>
        /// TransferOutForm (โอนสินค้าหน้าร้าน ไปยังสาขาอื่น)
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void โอนสนคาหนารานไปสาขาอนToolStripMenuItem_Click(object sender, EventArgs e)
        {
            TransferOutForm obj = new TransferOutForm();

            obj.MdiParent = this;
            obj.Show();
        }
        /// <summary>
        /// แก้ไขใบฌอน จะต้องยังไม่ยืนยัน และ enable อยุ่
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void button2_Click(object sender, EventArgs e)
        {
            string          code = dataGridView1.Rows[dataGridView1.CurrentRow.Index].Cells[3].Value.ToString();
            TransferOutForm obj  = new TransferOutForm(this, code);

            obj.Show();
            //using (SSLsEntities db = new SSLsEntities())
            //{
            //    var data = db.StoreFrontTransferOut.SingleOrDefault(w => w.Code == code);

            //    TransferOutEditForm obj = new TransferOutEditForm(this, code);
            //    obj.ShowDialog();

            //}
        }
 public SelectedBranchPopup(TransferOutForm transferOutForm)
 {
     InitializeComponent();
     this.transferOutForm = transferOutForm;
     _FromForm            = "TransferOutForm";
 }