private void InitializeComponent() { this.confirmPanel = new ConfirmOpenPackPanel(); base.SuspendLayout(); this.confirmPanel.ClickThru = false; this.confirmPanel.Location = new Point(0, 0); this.confirmPanel.Name = "confirmPanel"; this.confirmPanel.PanelActive = true; this.confirmPanel.Size = new Size(400, 280); this.confirmPanel.StoredGraphics = null; this.confirmPanel.TabIndex = 0; base.AutoScaleMode = AutoScaleMode.None; base.ClientSize = new Size(400, 280); base.ControlBox = false; base.Controls.Add(this.confirmPanel); base.FormBorderStyle = FormBorderStyle.None; base.Icon = Resources.shk_icon; base.MaximizeBox = false; base.MinimizeBox = false; base.Name = "ConfirmOpenPackPopup"; base.StartPosition = FormStartPosition.Manual; this.Text = "ConfirmPlayCardPopup"; base.FormClosing += new FormClosingEventHandler(this.ConfirmPlayCardPopup_FormClosing); base.ResumeLayout(false); }
public void init(CustomSelfDrawPanel.UICardPack pack, ConfirmOpenPackPanel.CardClickPlayDelegate callback) { this.confirmPanel.init(pack, callback); }
public ConfirmOpenPackPopup openConfirmOpenPackPopup(CustomSelfDrawPanel.UICardPack pack, ConfirmOpenPackPanel.CardClickPlayDelegate callback) { this.closePopupWindow(this.m_confirmOpenPackPopup); this.m_confirmOpenPackPopup = new ConfirmOpenPackPopup(); this.positionWindow(this.m_confirmOpenPackPopup, false, false); this.m_confirmOpenPackPopup.init(pack, callback); this.m_confirmOpenPackPopup.Show(this.getCardWindow()); return this.m_confirmOpenPackPopup; }