public DrawNumberWinningForm(ApplicationMediator pMediator) { InitializeComponent(); this.appMediator = pMediator; this.loadControls(); this.ticketPrintService = new TicketPrintService(); }
//--------------------------------------- Métodos de Inicialización --------------------------------------// #region Métodos de Inicialización public ListSelectorForm(ApplicationMediator pMediator, DateTime pDate, long pGroup, int pOperation) { InitializeComponent(); this.drawDate = pDate; this.drawType = pGroup; this.operationType = pOperation; this.addControls(); // Establecer el ApplicationMediator this.appMediator = pMediator; this.ticketPrintService = new TicketPrintService(); }
/* * public ListInstanceForm() * { * initializeComponent(); * } */ public ListInstanceForm(ApplicationMediator pMediator, NumberBoxForm pParent, LPS_LotteryPointSale pPointSale, LDT_LotteryDrawType pDrawType, DateTime pDrawDate) { this.optionMenuEnabled = true; this.numberBoxFormParent = pParent; this.listSelectorFormParent = null; this.pointSale = pPointSale; this.drawType = pDrawType; this.drawDate = pDrawDate; //this.numberDetail = null; initializeComponent(); // Establecer el ApplicationMediator this.appMediator = pMediator; this.ticketPrintService = new TicketPrintService(); //this.lotteryListControl.resetCurrentCell(); }
public ListInstanceForm(ApplicationMediator pMediator, ListSelectorForm pSelectorForm, LPS_LotteryPointSale pPointSale, LDT_LotteryDrawType pDrawType, DateTime pDrawDate, List <LotteryTuple> pNumberList = null) { this.optionMenuEnabled = true; this.numberBoxFormParent = null; this.listSelectorFormParent = pSelectorForm; this.pointSale = pPointSale; this.drawType = pDrawType; this.drawDate = pDrawDate; this.initializeComponent(); // Inicializar el list control si hay una lista asociada if (pNumberList != null) { this.initializeListControl(pNumberList); } // Establecer el ApplicationMediator this.appMediator = pMediator; this.ticketPrintService = new TicketPrintService(); //this.lotteryListControl.resetCurrentCell(); }