コード例 #1
0
 /// <summary>
 /// Handle event click on Create new import order for SanPham
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void BtnSPCreateBill_Click(object sender, EventArgs e)
 {
     Views.CreateSanPhamImportOrder createSanPhamImportOrder = new Views.CreateSanPhamImportOrder(this, Views.CreateSanPhamImportOrder.MODE_CREATE_IMPORT, 0)
     {
         StartPosition = FormStartPosition.CenterParent
     };
     createSanPhamImportOrder.ShowDialog();
 }
コード例 #2
0
        private void ListSPBill_SelectedIndexChanged(object sender, EventArgs e)
        {
            int index = this.listSPBill.FocusedItem.Index;

            if (index == this.selectedBillIndex)
            {
                return;
            }
            this.selectedBillIndex = index;

            Views.CreateSanPhamImportOrder orderForm = new Views.CreateSanPhamImportOrder(this, Views.CreateSanPhamImportOrder.MODE_APPROVE, this.quanLySanPhamDomain.listSPOrder[index], index)
            {
                StartPosition = FormStartPosition.CenterParent
            };
            orderForm.ShowDialog();
        }