Ejemplo n.º 1
0
 private void deleteClicked()
 {
     this.ClosePopUp();
     InterfaceMgr.Instance.openGreyOutWindow(false);
     this.deletePostPopUp = new MyMessageBoxPopUp();
     this.deletePostPopUp.init(SK.Text("FORUMS_Are_You_Sure", "Are you sure?"), SK.Text("FORUMS_Delete_Post", "Delete This Post"), 0, new CustomSelfDrawPanel.CSDControl.CSD_ClickDelegate(this.PopUpOkClick));
     this.deletePostPopUp.Show(InterfaceMgr.Instance.getGreyOutWindow());
 }
Ejemplo n.º 2
0
 private void CloseDeletePopUp()
 {
     if (this.deletePopUp != null)
     {
         if (this.deletePopUp.Created)
         {
             this.deletePopUp.Close();
         }
         this.deletePopUp = null;
     }
 }
Ejemplo n.º 3
0
 private void ClosePopUp()
 {
     if (this.deletePostPopUp != null)
     {
         if (this.deletePostPopUp.Created)
         {
             this.deletePostPopUp.Close();
         }
         InterfaceMgr.Instance.closeGreyOut();
         this.deletePostPopUp = null;
     }
 }
Ejemplo n.º 4
0
 private void closeCancelResearchPopup()
 {
     if (this.cancelResearchPopup != null)
     {
         if (this.cancelResearchPopup.Created)
         {
             this.cancelResearchPopup.Close();
         }
         InterfaceMgr.Instance.closeGreyOut();
         this.cancelResearchPopup = null;
     }
 }
Ejemplo n.º 5
0
 private void cancelResearchClick()
 {
     if ((this.selectedQueueSlot < 0) || (((this.lastData != null) && (this.lastData.research_queueEntries != null)) && (this.selectedQueueSlot < this.lastData.research_queueEntries.Length)))
     {
         this.closeCancelResearchPopup();
         InterfaceMgr.Instance.openGreyOutWindow(false);
         this.cancelResearchPopup = new MyMessageBoxPopUp();
         this.cancelResearchPopup.init(SK.Text("FORUMS_Are_You_Sure", "Are you sure?"), SK.Text("Research_Cancel_Research", "Cancel Research?"), 0, new CustomSelfDrawPanel.CSDControl.CSD_ClickDelegate(this.cancelResearch));
         this.cancelResearchPopup.Show(InterfaceMgr.Instance.getGreyOutWindow());
     }
 }
 private void deleteClicked()
 {
     this.ClosePopUp();
     InterfaceMgr.Instance.openGreyOutWindow(false);
     this.deletePostPopUp = new MyMessageBoxPopUp();
     this.deletePostPopUp.init(SK.Text("FORUMS_Are_You_Sure", "Are you sure?"), SK.Text("FORUMS_Delete_Post", "Delete This Post"), 0, new CustomSelfDrawPanel.CSDControl.CSD_ClickDelegate(this.PopUpOkClick));
     this.deletePostPopUp.Show(InterfaceMgr.Instance.getGreyOutWindow());
 }
 private void ClosePopUp()
 {
     if (this.deletePostPopUp != null)
     {
         if (this.deletePostPopUp.Created)
         {
             this.deletePostPopUp.Close();
         }
         InterfaceMgr.Instance.closeGreyOut();
         this.deletePostPopUp = null;
     }
 }
        public void init(MyMessageBoxPopUp myFormBaseParent, string message, int type, CustomSelfDrawPanel.CSDControl.CSD_ClickDelegate leftClickDelegate, CustomSelfDrawPanel.CSDControl.CSD_ClickDelegate noClickDelegateSpecial)
        {
            base.clearControls();
            this.BackColor = ARGBColors.Transparent;
            this.typeOfPopUp = type;
            this.parent = myFormBaseParent;
            base.addControl(this.controlToAddTo);
            Graphics graphics = base.CreateGraphics();
            Size size = graphics.MeasureString(message, this.popupText.Font, 0x3e8).ToSize();
            graphics.Dispose();
            this.popupText.Size = new Size(size.Width + 10, size.Height);
            this.popupText.Text = message;
            this.popupText.Size = new Size(base.Width - 0x10, base.Height - 0x10);
            this.popupText.Alignment = CustomSelfDrawPanel.CSD_Text_Alignment.TOP_CENTER;
            this.popupText.Position = new Point((base.Size.Width / 2) - (this.popupText.Width / 2), 15);
            this.controlToAddTo.addControl(this.popupText);
            this.buttonLeft.ImageNorm = (Image) GFXLibrary.button_132_normal;
            this.buttonLeft.ImageOver = (Image) GFXLibrary.button_132_over;
            this.buttonLeft.ImageClick = (Image) GFXLibrary.button_132_in;
            this.buttonLeft.Position = new Point(10, (base.Size.Height - this.buttonLeft.Height) - 5);
            this.buttonLeft.setClickDelegate(leftClickDelegate);
            this.buttonCenter.ImageNorm = (Image) GFXLibrary.button_132_normal;
            this.buttonCenter.ImageOver = (Image) GFXLibrary.button_132_over;
            this.buttonCenter.ImageClick = (Image) GFXLibrary.button_132_in;
            this.buttonCenter.Position = new Point((base.Size.Width / 2) - (this.buttonCenter.Width / 2), (base.Size.Height - this.buttonCenter.Height) - 5);
            this.buttonRight.ImageNorm = (Image) GFXLibrary.button_132_normal;
            this.buttonRight.ImageOver = (Image) GFXLibrary.button_132_over;
            this.buttonRight.ImageClick = (Image) GFXLibrary.button_132_in;
            this.buttonRight.Position = new Point((base.Size.Width - this.buttonRight.Width) - 10, (base.Size.Height - this.buttonRight.Size.Height) - 5);
            this.noSpecialDelegate = noClickDelegateSpecial;
            this.buttonRight.setClickDelegate(new CustomSelfDrawPanel.CSDControl.CSD_ClickDelegate(this.ClosePanel));
            switch (type)
            {
                case 0:
                    this.buttonLeft.Text.Text = SK.Text("GENERIC_Yes", "Yes");
                    this.buttonRight.Text.Text = SK.Text("GENERIC_No", "No");
                    this.controlToAddTo.addControl(this.buttonLeft);
                    this.controlToAddTo.addControl(this.buttonRight);
                    return;

                case 1:
                case 4:
                case 5:
                    break;

                case 2:
                    this.buttonCenter.Text.Text = SK.Text("GENERIC_OK", "OK");
                    this.buttonCenter.setClickDelegate(new CustomSelfDrawPanel.CSDControl.CSD_ClickDelegate(this.ClosePanel));
                    this.controlToAddTo.addControl(this.buttonCenter);
                    return;

                case 3:
                    this.buttonLeft.Text.Text = SK.Text("GENERIC_OK", "OK");
                    this.buttonRight.Text.Text = SK.Text("GENERIC_Cancel", "Cancel");
                    this.controlToAddTo.addControl(this.buttonLeft);
                    this.controlToAddTo.addControl(this.buttonRight);
                    return;

                case 6:
                    this.buttonCenter.Text.Text = SK.Text("GENERIC_OK", "OK");
                    this.buttonCenter.setClickDelegate(leftClickDelegate);
                    this.controlToAddTo.addControl(this.buttonCenter);
                    break;

                default:
                    return;
            }
        }
 private void CloseExtendPremiumPopUp()
 {
     if (this.extendPremiumPopUp != null)
     {
         if (this.extendPremiumPopUp.Created)
         {
             this.extendPremiumPopUp.Close();
         }
         this.extendPremiumPopUp = null;
     }
 }
Ejemplo n.º 10
0
 private void CloseDeletePopUp()
 {
     if (this.deletePopUp != null)
     {
         if (this.deletePopUp.Created)
         {
             this.deletePopUp.Close();
         }
         this.deletePopUp = null;
     }
 }
        public void init(MyMessageBoxPopUp myFormBaseParent, string message, int type, CustomSelfDrawPanel.CSDControl.CSD_ClickDelegate leftClickDelegate, CustomSelfDrawPanel.CSDControl.CSD_ClickDelegate noClickDelegateSpecial)
        {
            base.clearControls();
            this.BackColor   = ARGBColors.Transparent;
            this.typeOfPopUp = type;
            this.parent      = myFormBaseParent;
            base.addControl(this.controlToAddTo);
            Graphics graphics = base.CreateGraphics();
            Size     size     = graphics.MeasureString(message, this.popupText.Font, 0x3e8).ToSize();

            graphics.Dispose();
            this.popupText.Size      = new Size(size.Width + 10, size.Height);
            this.popupText.Text      = message;
            this.popupText.Size      = new Size(base.Width - 0x10, base.Height - 0x10);
            this.popupText.Alignment = CustomSelfDrawPanel.CSD_Text_Alignment.TOP_CENTER;
            this.popupText.Position  = new Point((base.Size.Width / 2) - (this.popupText.Width / 2), 15);
            this.controlToAddTo.addControl(this.popupText);
            this.buttonLeft.ImageNorm  = (Image)GFXLibrary.button_132_normal;
            this.buttonLeft.ImageOver  = (Image)GFXLibrary.button_132_over;
            this.buttonLeft.ImageClick = (Image)GFXLibrary.button_132_in;
            this.buttonLeft.Position   = new Point(10, (base.Size.Height - this.buttonLeft.Height) - 5);
            this.buttonLeft.setClickDelegate(leftClickDelegate);
            this.buttonCenter.ImageNorm  = (Image)GFXLibrary.button_132_normal;
            this.buttonCenter.ImageOver  = (Image)GFXLibrary.button_132_over;
            this.buttonCenter.ImageClick = (Image)GFXLibrary.button_132_in;
            this.buttonCenter.Position   = new Point((base.Size.Width / 2) - (this.buttonCenter.Width / 2), (base.Size.Height - this.buttonCenter.Height) - 5);
            this.buttonRight.ImageNorm   = (Image)GFXLibrary.button_132_normal;
            this.buttonRight.ImageOver   = (Image)GFXLibrary.button_132_over;
            this.buttonRight.ImageClick  = (Image)GFXLibrary.button_132_in;
            this.buttonRight.Position    = new Point((base.Size.Width - this.buttonRight.Width) - 10, (base.Size.Height - this.buttonRight.Size.Height) - 5);
            this.noSpecialDelegate       = noClickDelegateSpecial;
            this.buttonRight.setClickDelegate(new CustomSelfDrawPanel.CSDControl.CSD_ClickDelegate(this.ClosePanel));
            switch (type)
            {
            case 0:
                this.buttonLeft.Text.Text  = SK.Text("GENERIC_Yes", "Yes");
                this.buttonRight.Text.Text = SK.Text("GENERIC_No", "No");
                this.controlToAddTo.addControl(this.buttonLeft);
                this.controlToAddTo.addControl(this.buttonRight);
                return;

            case 1:
            case 4:
            case 5:
                break;

            case 2:
                this.buttonCenter.Text.Text = SK.Text("GENERIC_OK", "OK");
                this.buttonCenter.setClickDelegate(new CustomSelfDrawPanel.CSDControl.CSD_ClickDelegate(this.ClosePanel));
                this.controlToAddTo.addControl(this.buttonCenter);
                return;

            case 3:
                this.buttonLeft.Text.Text  = SK.Text("GENERIC_OK", "OK");
                this.buttonRight.Text.Text = SK.Text("GENERIC_Cancel", "Cancel");
                this.controlToAddTo.addControl(this.buttonLeft);
                this.controlToAddTo.addControl(this.buttonRight);
                return;

            case 6:
                this.buttonCenter.Text.Text = SK.Text("GENERIC_OK", "OK");
                this.buttonCenter.setClickDelegate(leftClickDelegate);
                this.controlToAddTo.addControl(this.buttonCenter);
                break;

            default:
                return;
            }
        }
 public void init(MyMessageBoxPopUp myFormBaseParent, string message, int type, CustomSelfDrawPanel.CSDControl.CSD_ClickDelegate leftClickDelegate, CustomSelfDrawPanel.CSDControl.CSD_ClickDelegate noButtonClickDelegate, bool leaveGreaoutOpenOnClose)
 {
     this.leaveGreyoutOpen = leaveGreaoutOpenOnClose;
     this.init(myFormBaseParent, message, type, leftClickDelegate, noButtonClickDelegate);
 }
 private void ClosePlayPremiumPopUp()
 {
     if (this.playPremiumPopup != null)
     {
         if (this.playPremiumPopup.Created)
         {
             this.playPremiumPopup.Close();
         }
         this.playPremiumPopup = null;
     }
 }
Ejemplo n.º 14
0
 private void ClosePopUp()
 {
     if (this.cancelCardPopUp != null)
     {
         if (this.cancelCardPopUp.Created)
         {
             this.cancelCardPopUp.Close();
         }
         this.cancelCardPopUp = null;
     }
 }
 public void init(MyMessageBoxPopUp myFormBaseParent, string message, int type, CustomSelfDrawPanel.CSDControl.CSD_ClickDelegate leftClickDelegate, CustomSelfDrawPanel.CSDControl.CSD_ClickDelegate noButtonClickDelegate, bool leaveGreaoutOpenOnClose)
 {
     this.leaveGreyoutOpen = leaveGreaoutOpenOnClose;
     this.init(myFormBaseParent, message, type, leftClickDelegate, noButtonClickDelegate);
 }
Ejemplo n.º 16
0
 private void ClosePopUp()
 {
     if (this.confirmBuyCardPopUp != null)
     {
         if (this.confirmBuyCardPopUp.Created)
         {
             this.confirmBuyCardPopUp.Close();
         }
         this.confirmBuyCardPopUp = null;
     }
 }
 private void CloseBuyTokenPopUp()
 {
     if (this.buyTokenPopUp != null)
     {
         if (this.buyTokenPopUp.Created)
         {
             this.buyTokenPopUp.Close();
         }
         this.buyTokenPopUp = null;
     }
 }