예제 #1
0
        void multiShipToSelect_EditValueChanged(object sender, EventArgs e)
        {
            SalesOrderShipTo shipTo  = multiShipToView.GetFocusedRow() as SalesOrderShipTo;
            Address          address = multiShipToSelect.EditValue as Address;

            if (shipTo != null && address != null)
            {
                shipTo.ShipToAddress        = address.ToString();
                multiShipToSelect.EditValue = null;
            }
        }
예제 #2
0
        void deleteMultiShipToLink_Click(object sender, EventArgs e)
        {
            SalesOrderShipTo shipTo = multiShipToView.GetFocusedRow() as SalesOrderShipTo;

            if (shipTo == null)
            {
                return;
            }

            string msg = "Do you really want to delete this ship to?";

            if (Scout.Core.UserInteraction.Dialog.AskQuestion(msg) == DialogResult.Yes)
            {
                m_salesOrder.ShipTos.DeleteObjectOnRemove = true;
                m_salesOrder.ShipTos.Remove(shipTo);
            }
        }