CursorMgr.startEvent();
// ================ Begin Forte Event Handler Translation ================
//self.Quantity = self.Quantity + 100;
//self.Window.MessageDialog(MessageText='You bought 100 shares',
// MessageType=MT_INFO);
OrderWindow orderWin = new OrderWindow();
orderWin.display(this.getCustomerGrid().getCustomerName(), "Buy", (Array_Of_Holding<Holding>)null);
// ================ End Forte Event Handler Translation ================
}
finally {
CursorMgr.endEvent();
}
}
// ---------------
// <SellBtn>.Click
// ---------------
else if (qq_currentEvent.isEvent(PushButton_Click_getqq_SellBtn)) {
try {
CursorMgr.startEvent();
// ================ Begin Forte Event Handler Translation ================
//self.Quantity = self.Quantity - 100;
//self.Window.MessageDialog(MessageText='You sold 100 shares',
// MessageType=MT_INFO);
OrderWindow orderWin = new OrderWindow();
orderWin.display(this.getCustomerGrid().getCustomerName(), "Sell", this.getCustomerGrid().getHoldingList());
// ================ End Forte Event Handler Translation ================
}
finally {