예제 #1
0
 public ReportCapturePopup openReportCaptureWindow(int mode)
 {
     this.openGreyOutWindow(false);
     this.closePopupWindow(this.m_reportCapturePopup);
     this.m_reportCapturePopup = new ReportCapturePopup();
     this.m_reportCapturePopup.init(mode);
     this.positionWindow(this.m_reportCapturePopup, false, false);
     this.m_reportCapturePopup.Show(this.getGreyOutWindow());
     GameEngine.Instance.DisableMouseClicks();
     return this.m_reportCapturePopup;
 }
예제 #2
0
 public void closeReportCaptureWindow()
 {
     if (!this.reportCaptureWindowClosing)
     {
         this.reportCaptureWindowClosing = true;
         if (this.isPopupWindowOpenAndClose(this.m_reportCapturePopup))
         {
             GameEngine.Instance.EnableMouseClicks();
             this.closeGreyOut();
         }
         this.m_reportCapturePopup = null;
         this.reportCaptureWindowClosing = false;
     }
 }
예제 #3
0
        public void init(int mode, ReportCapturePopup parent)
        {
            this.m_mode = mode;
            base.clearControls();
            this.backgroundImage.Image    = (Image)GFXLibrary.popup_background_01;
            this.backgroundImage.Position = new Point(0, 0);
            base.addControl(this.backgroundImage);
            float pointSize = 9f;

            if (Program.mySettings.LanguageIdent == "pl")
            {
                pointSize = 8f;
            }
            if (mode == 2)
            {
                this.captureLabel.Text = SK.Text("Report_Marking_And_Deleting", "Report Marking and Deleting");
            }
            this.captureLabel.Color     = ARGBColors.White;
            this.captureLabel.Position  = new Point(13, 7);
            this.captureLabel.Size      = new Size(0x14f, 20);
            this.captureLabel.Font      = FontManager.GetFont("Arial", 12f, FontStyle.Bold);
            this.captureLabel.Alignment = CustomSelfDrawPanel.CSD_Text_Alignment.TOP_LEFT;
            this.backgroundImage.addControl(this.captureLabel);
            this.okButton.ImageNorm  = (Image)GFXLibrary.button_blue_01_normal;
            this.okButton.ImageOver  = (Image)GFXLibrary.button_blue_01_over;
            this.okButton.ImageClick = (Image)GFXLibrary.button_blue_01_in;
            this.okButton.Position   = new Point(240, 0x145);
            this.okButton.Text.Text  = SK.Text("GENERIC_OK", "OK");
            this.okButton.Text.Font  = FontManager.GetFont("Arial", 10f, FontStyle.Regular);
            this.okButton.Text.Color = ARGBColors.Black;
            this.okButton.setClickDelegate(new CustomSelfDrawPanel.CSDControl.CSD_ClickDelegate(this.okClicked), "ReportDeletePanel_ok");
            this.backgroundImage.addControl(this.okButton);
            CustomSelfDrawPanel.CSDLabel control = new CustomSelfDrawPanel.CSDLabel {
                Text      = SK.Text("ReportDeleting_Delete_Reports", "Delete Reports"),
                Color     = ARGBColors.Black,
                Position  = new Point(0, 50),
                Size      = new Size(this.backgroundImage.Width, 20),
                Font      = FontManager.GetFont("Arial", 12f, FontStyle.Bold),
                Alignment = CustomSelfDrawPanel.CSD_Text_Alignment.TOP_CENTER
            };
            this.backgroundImage.addControl(control);
            CustomSelfDrawPanel.CSDButton button = new CustomSelfDrawPanel.CSDButton {
                ImageNorm  = (Image)GFXLibrary.mail2_button_blue_141wide_normal,
                ImageOver  = (Image)GFXLibrary.mail2_button_blue_141wide_over,
                ImageClick = (Image)GFXLibrary.mail2_button_blue_141wide_pushed,
                Position   = new Point((this.backgroundImage.Width - GFXLibrary.mail2_button_blue_141wide_normal.Width) / 2, 70)
            };
            button.Text.Text      = SK.Text("ReportDeleting_All", "All");
            button.Text.Alignment = CustomSelfDrawPanel.CSD_Text_Alignment.CENTER_CENTER;
            button.Text.Font      = FontManager.GetFont("Arial", pointSize, FontStyle.Bold);
            button.TextYOffset    = -3;
            button.Text.Color     = ARGBColors.Black;
            button.setClickDelegate(() => ReportsPanel.Instance.deleteAllReports(), "ReportDeletePanel_delete_all");
            this.backgroundImage.addControl(button);
            CustomSelfDrawPanel.CSDButton button2 = new CustomSelfDrawPanel.CSDButton {
                ImageNorm  = (Image)GFXLibrary.mail2_button_blue_141wide_normal,
                ImageOver  = (Image)GFXLibrary.mail2_button_blue_141wide_over,
                ImageClick = (Image)GFXLibrary.mail2_button_blue_141wide_pushed,
                Position   = new Point((this.backgroundImage.Width - GFXLibrary.mail2_button_blue_141wide_normal.Width) / 2, 100)
            };
            button2.Text.Text      = SK.Text("ReportDeleting_All_Shown", "All Shown");
            button2.Text.Alignment = CustomSelfDrawPanel.CSD_Text_Alignment.CENTER_CENTER;
            button2.Text.Font      = FontManager.GetFont("Arial", pointSize, FontStyle.Bold);
            button2.TextYOffset    = -3;
            button2.Text.Color     = ARGBColors.Black;
            button2.setClickDelegate(() => ReportsPanel.Instance.deleteShownReports(), "ReportDeletePanel_delete_shown");
            this.backgroundImage.addControl(button2);
            CustomSelfDrawPanel.CSDButton button3 = new CustomSelfDrawPanel.CSDButton {
                ImageNorm  = (Image)GFXLibrary.mail2_button_blue_141wide_normal,
                ImageOver  = (Image)GFXLibrary.mail2_button_blue_141wide_over,
                ImageClick = (Image)GFXLibrary.mail2_button_blue_141wide_pushed,
                Position   = new Point((this.backgroundImage.Width - GFXLibrary.mail2_button_blue_141wide_normal.Width) / 2, 130)
            };
            button3.Text.Text      = SK.Text("ReportDeleting_All_Marked", "All Marked");
            button3.Text.Alignment = CustomSelfDrawPanel.CSD_Text_Alignment.CENTER_CENTER;
            button3.Text.Font      = FontManager.GetFont("Arial", pointSize, FontStyle.Bold);
            button3.TextYOffset    = -3;
            button3.Text.Color     = ARGBColors.Black;
            button3.setClickDelegate(() => ReportsPanel.Instance.deleteMarkedReports(), "ReportDeletePanel_delete_marked");
            this.backgroundImage.addControl(button3);
            CustomSelfDrawPanel.CSDLabel label2 = new CustomSelfDrawPanel.CSDLabel {
                Text      = SK.Text("ReportDeleting_Mark_As_Read", "Mark Reports As Read"),
                Color     = ARGBColors.Black,
                Position  = new Point(0, 170),
                Size      = new Size(this.backgroundImage.Width, 20),
                Font      = FontManager.GetFont("Arial", 12f, FontStyle.Bold),
                Alignment = CustomSelfDrawPanel.CSD_Text_Alignment.TOP_CENTER
            };
            this.backgroundImage.addControl(label2);
            CustomSelfDrawPanel.CSDButton button4 = new CustomSelfDrawPanel.CSDButton {
                ImageNorm  = (Image)GFXLibrary.mail2_button_blue_141wide_normal,
                ImageOver  = (Image)GFXLibrary.mail2_button_blue_141wide_over,
                ImageClick = (Image)GFXLibrary.mail2_button_blue_141wide_pushed,
                Position   = new Point((this.backgroundImage.Width - GFXLibrary.mail2_button_blue_141wide_normal.Width) / 2, 190)
            };
            button4.Text.Text      = SK.Text("ReportDeleting_All", "All");
            button4.Text.Alignment = CustomSelfDrawPanel.CSD_Text_Alignment.CENTER_CENTER;
            button4.Text.Font      = FontManager.GetFont("Arial", pointSize, FontStyle.Bold);
            button4.TextYOffset    = -3;
            button4.Text.Color     = ARGBColors.Black;
            button4.setClickDelegate(() => ReportsPanel.Instance.markAsReadAllReports(), "ReportDeletePanel_mark_all_as_read");
            this.backgroundImage.addControl(button4);
            CustomSelfDrawPanel.CSDButton button5 = new CustomSelfDrawPanel.CSDButton {
                ImageNorm  = (Image)GFXLibrary.mail2_button_blue_141wide_normal,
                ImageOver  = (Image)GFXLibrary.mail2_button_blue_141wide_over,
                ImageClick = (Image)GFXLibrary.mail2_button_blue_141wide_pushed,
                Position   = new Point((this.backgroundImage.Width - GFXLibrary.mail2_button_blue_141wide_normal.Width) / 2, 220)
            };
            button5.Text.Text      = SK.Text("ReportDeleting_All_Shown", "All Shown");
            button5.Text.Alignment = CustomSelfDrawPanel.CSD_Text_Alignment.CENTER_CENTER;
            button5.Text.Font      = FontManager.GetFont("Arial", pointSize, FontStyle.Bold);
            button5.TextYOffset    = -3;
            button5.Text.Color     = ARGBColors.Black;
            button5.setClickDelegate(() => ReportsPanel.Instance.markAsReadShownReports(), "ReportDeletePanel_mark_shown_as_read");
            this.backgroundImage.addControl(button5);
            CustomSelfDrawPanel.CSDButton button6 = new CustomSelfDrawPanel.CSDButton {
                ImageNorm  = (Image)GFXLibrary.mail2_button_blue_141wide_normal,
                ImageOver  = (Image)GFXLibrary.mail2_button_blue_141wide_over,
                ImageClick = (Image)GFXLibrary.mail2_button_blue_141wide_pushed,
                Position   = new Point((this.backgroundImage.Width - GFXLibrary.mail2_button_blue_141wide_normal.Width) / 2, 250)
            };
            button6.Text.Text      = SK.Text("ReportDeleting_All_Marked", "All Marked");
            button6.Text.Alignment = CustomSelfDrawPanel.CSD_Text_Alignment.CENTER_CENTER;
            button6.Text.Font      = FontManager.GetFont("Arial", pointSize, FontStyle.Bold);
            button6.TextYOffset    = -3;
            button6.Text.Color     = ARGBColors.Black;
            button6.setClickDelegate(() => ReportsPanel.Instance.markAsReadMarkedReports(), "ReportDeletePanel_mark_marked_as_read");
            this.backgroundImage.addControl(button6);
            parent.Size = this.backgroundImage.Size;
            base.Invalidate();
            parent.Invalidate();
        }
 public void init(int mode, ReportCapturePopup parent)
 {
     this.m_mode = mode;
     base.clearControls();
     this.backgroundImage.Image = (Image) GFXLibrary.popup_background_01;
     this.backgroundImage.Position = new Point(0, 0);
     base.addControl(this.backgroundImage);
     bool flag = false;
     if (mode == 0)
     {
         this.captureLabel.Text = SK.Text("Report_Capturing", "Report Capturing");
         flag = true;
     }
     else
     {
         this.captureLabel.Text = SK.Text("Report_Filtering", "Report Filtering");
     }
     this.captureLabel.Color = ARGBColors.White;
     this.captureLabel.Position = new Point(13, 7);
     this.captureLabel.Size = new Size(0x14f, 20);
     this.captureLabel.Font = FontManager.GetFont("Arial", 12f, FontStyle.Bold);
     this.captureLabel.Alignment = CustomSelfDrawPanel.CSD_Text_Alignment.TOP_LEFT;
     this.backgroundImage.addControl(this.captureLabel);
     this.okButton.ImageNorm = (Image) GFXLibrary.button_blue_01_normal;
     this.okButton.ImageOver = (Image) GFXLibrary.button_blue_01_over;
     this.okButton.ImageClick = (Image) GFXLibrary.button_blue_01_in;
     this.okButton.Position = new Point(240, 0x145);
     this.okButton.Text.Text = SK.Text("GENERIC_OK", "OK");
     this.okButton.Text.Font = FontManager.GetFont("Arial", 10f, FontStyle.Regular);
     this.okButton.Text.Color = ARGBColors.Black;
     this.okButton.setClickDelegate(new CustomSelfDrawPanel.CSDControl.CSD_ClickDelegate(this.okClicked), "ReportCapturePanel_ok");
     this.backgroundImage.addControl(this.okButton);
     this.cancelButton.ImageNorm = (Image) GFXLibrary.button_blue_01_normal;
     this.cancelButton.ImageOver = (Image) GFXLibrary.button_blue_01_over;
     this.cancelButton.ImageClick = (Image) GFXLibrary.button_blue_01_in;
     this.cancelButton.Position = new Point(0x7c, 0x145);
     this.cancelButton.Text.Text = SK.Text("GENERIC_Cancel", "Cancel");
     this.cancelButton.Text.Font = FontManager.GetFont("Arial", 10f, FontStyle.Regular);
     this.cancelButton.Text.Color = ARGBColors.Black;
     this.cancelButton.setClickDelegate(delegate {
         InterfaceMgr.Instance.closeReportCaptureWindow();
         InterfaceMgr.Instance.ParentForm.TopMost = true;
         InterfaceMgr.Instance.ParentForm.TopMost = false;
     }, "ReportCapturePanel_cancel");
     this.cancelButton.Visible = flag;
     this.backgroundImage.addControl(this.cancelButton);
     ReportFilterList reportFilters = null;
     if (flag)
     {
         reportFilters = RemoteServices.Instance.ReportFilters;
     }
     else
     {
         reportFilters = ReportsPanel.Instance.Filters;
     }
     int num = 0x19;
     int y = 0x37;
     int x = 0x2d;
     int num4 = 210;
     if (!flag)
     {
         y -= 12;
         num = 0x16;
     }
     if (Program.mySettings.LanguageIdent == "de")
     {
         x -= 20;
         num4 += 20;
     }
     this.attackCheck.CheckedImage = (Image) GFXLibrary.reports_checkbox_checked;
     this.attackCheck.UncheckedImage = (Image) GFXLibrary.reports_checkbox_empty;
     this.attackCheck.Position = new Point(x, y);
     this.attackCheck.Checked = reportFilters.attacks;
     this.attackCheck.CBLabel.Text = SK.Text("ReportFilter_Attacks", "Attacks");
     this.attackCheck.CBLabel.Color = ARGBColors.Black;
     this.attackCheck.CBLabel.Position = new Point(20, -1);
     this.attackCheck.CBLabel.Size = new Size(170, 0x19);
     this.attackCheck.CBLabel.Font = FontManager.GetFont("Arial", 10f, FontStyle.Regular);
     this.attackCheck.Data = 0;
     this.attackCheck.setCheckChangedDelegate(new CustomSelfDrawPanel.CSDCheckBox.CSD_CheckChangedDelegate(this.checkToggled));
     this.backgroundImage.addControl(this.attackCheck);
     this.defenceCheck.CheckedImage = (Image) GFXLibrary.reports_checkbox_checked;
     this.defenceCheck.UncheckedImage = (Image) GFXLibrary.reports_checkbox_empty;
     this.defenceCheck.Position = new Point(x, y + num);
     this.defenceCheck.Checked = reportFilters.defense;
     this.defenceCheck.CBLabel.Text = SK.Text("ReportFilter_Defense", "Defense");
     this.defenceCheck.CBLabel.Color = ARGBColors.Black;
     this.defenceCheck.CBLabel.Position = new Point(20, -1);
     this.defenceCheck.CBLabel.Size = new Size(170, 0x19);
     this.defenceCheck.CBLabel.Font = FontManager.GetFont("Arial", 10f, FontStyle.Regular);
     this.defenceCheck.Data = 1;
     this.defenceCheck.setCheckChangedDelegate(new CustomSelfDrawPanel.CSDCheckBox.CSD_CheckChangedDelegate(this.checkToggled));
     this.backgroundImage.addControl(this.defenceCheck);
     this.enemyCheck.CheckedImage = (Image) GFXLibrary.reports_checkbox_checked;
     this.enemyCheck.UncheckedImage = (Image) GFXLibrary.reports_checkbox_empty;
     this.enemyCheck.Position = new Point(x, y + (2 * num));
     this.enemyCheck.Checked = reportFilters.enemyWarnings;
     this.enemyCheck.CBLabel.Text = SK.Text("ReportFilter_Enemy_Attacks", "Enemy Attacks");
     this.enemyCheck.CBLabel.Color = ARGBColors.Black;
     this.enemyCheck.CBLabel.Position = new Point(20, -1);
     this.enemyCheck.CBLabel.Size = new Size(170, 0x19);
     this.enemyCheck.CBLabel.Font = FontManager.GetFont("Arial", 10f, FontStyle.Regular);
     this.enemyCheck.Data = 2;
     this.enemyCheck.setCheckChangedDelegate(new CustomSelfDrawPanel.CSDCheckBox.CSD_CheckChangedDelegate(this.checkToggled));
     this.backgroundImage.addControl(this.enemyCheck);
     this.reinforceCheck.CheckedImage = (Image) GFXLibrary.reports_checkbox_checked;
     this.reinforceCheck.UncheckedImage = (Image) GFXLibrary.reports_checkbox_empty;
     this.reinforceCheck.Position = new Point(x, y + (3 * num));
     this.reinforceCheck.Checked = reportFilters.reinforcements;
     this.reinforceCheck.CBLabel.Text = SK.Text("ReportFilter_Reinforcements", "Reinforcements");
     this.reinforceCheck.CBLabel.Color = ARGBColors.Black;
     this.reinforceCheck.CBLabel.Position = new Point(20, -1);
     this.reinforceCheck.CBLabel.Size = new Size(190, 0x19);
     this.reinforceCheck.CBLabel.Font = FontManager.GetFont("Arial", 10f, FontStyle.Regular);
     this.reinforceCheck.Data = 3;
     this.reinforceCheck.setCheckChangedDelegate(new CustomSelfDrawPanel.CSDCheckBox.CSD_CheckChangedDelegate(this.checkToggled));
     this.backgroundImage.addControl(this.reinforceCheck);
     this.scoutingCheck.CheckedImage = (Image) GFXLibrary.reports_checkbox_checked;
     this.scoutingCheck.UncheckedImage = (Image) GFXLibrary.reports_checkbox_empty;
     this.scoutingCheck.Position = new Point(x, y + (4 * num));
     this.scoutingCheck.Checked = reportFilters.scouting;
     this.scoutingCheck.CBLabel.Text = SK.Text("ReportFilter_Scouting", "Scouting");
     this.scoutingCheck.CBLabel.Color = ARGBColors.Black;
     this.scoutingCheck.CBLabel.Position = new Point(20, -1);
     this.scoutingCheck.CBLabel.Size = new Size(170, 0x19);
     if (Program.mySettings.LanguageIdent == "pt")
     {
         this.scoutingCheck.CBLabel.Font = FontManager.GetFont("Arial", 9f, FontStyle.Regular);
     }
     else
     {
         this.scoutingCheck.CBLabel.Font = FontManager.GetFont("Arial", 10f, FontStyle.Regular);
     }
     this.scoutingCheck.Data = 4;
     this.scoutingCheck.setCheckChangedDelegate(new CustomSelfDrawPanel.CSDCheckBox.CSD_CheckChangedDelegate(this.checkToggled));
     this.backgroundImage.addControl(this.scoutingCheck);
     this.foragingCheck.CheckedImage = (Image) GFXLibrary.reports_checkbox_checked;
     this.foragingCheck.UncheckedImage = (Image) GFXLibrary.reports_checkbox_empty;
     this.foragingCheck.Position = new Point(x, y + (5 * num));
     this.foragingCheck.Checked = reportFilters.foraging;
     this.foragingCheck.CBLabel.Text = SK.Text("ReportFilter_Foraging", "Foraging");
     this.foragingCheck.CBLabel.Color = ARGBColors.Black;
     this.foragingCheck.CBLabel.Position = new Point(20, -1);
     this.foragingCheck.CBLabel.Size = new Size(170, 0x19);
     this.foragingCheck.CBLabel.Font = FontManager.GetFont("Arial", 10f, FontStyle.Regular);
     this.foragingCheck.Data = 5;
     this.foragingCheck.setCheckChangedDelegate(new CustomSelfDrawPanel.CSDCheckBox.CSD_CheckChangedDelegate(this.checkToggled));
     this.backgroundImage.addControl(this.foragingCheck);
     this.tradeCheck.CheckedImage = (Image) GFXLibrary.reports_checkbox_checked;
     this.tradeCheck.UncheckedImage = (Image) GFXLibrary.reports_checkbox_empty;
     this.tradeCheck.Position = new Point(x, y + (6 * num));
     this.tradeCheck.Checked = reportFilters.trade;
     this.tradeCheck.CBLabel.Text = SK.Text("ReportFilter_Trade", "Trade");
     this.tradeCheck.CBLabel.Color = ARGBColors.Black;
     this.tradeCheck.CBLabel.Position = new Point(20, -1);
     this.tradeCheck.CBLabel.Size = new Size(170, 0x19);
     this.tradeCheck.CBLabel.Font = FontManager.GetFont("Arial", 10f, FontStyle.Regular);
     this.tradeCheck.Data = 6;
     this.tradeCheck.setCheckChangedDelegate(new CustomSelfDrawPanel.CSDCheckBox.CSD_CheckChangedDelegate(this.checkToggled));
     this.backgroundImage.addControl(this.tradeCheck);
     this.vassalsCheck.CheckedImage = (Image) GFXLibrary.reports_checkbox_checked;
     this.vassalsCheck.UncheckedImage = (Image) GFXLibrary.reports_checkbox_empty;
     this.vassalsCheck.Position = new Point(num4, y);
     this.vassalsCheck.Checked = reportFilters.vassals;
     this.vassalsCheck.CBLabel.Text = SK.Text("ReportFilter_Vassals", "Vassals");
     this.vassalsCheck.CBLabel.Color = ARGBColors.Black;
     this.vassalsCheck.CBLabel.Position = new Point(20, -1);
     this.vassalsCheck.CBLabel.Size = new Size(170, 0x19);
     this.vassalsCheck.CBLabel.Font = FontManager.GetFont("Arial", 10f, FontStyle.Regular);
     this.vassalsCheck.Data = 7;
     this.vassalsCheck.setCheckChangedDelegate(new CustomSelfDrawPanel.CSDCheckBox.CSD_CheckChangedDelegate(this.checkToggled));
     this.backgroundImage.addControl(this.vassalsCheck);
     this.religionCheck.CheckedImage = (Image) GFXLibrary.reports_checkbox_checked;
     this.religionCheck.UncheckedImage = (Image) GFXLibrary.reports_checkbox_empty;
     this.religionCheck.Position = new Point(num4, y + num);
     this.religionCheck.Checked = reportFilters.religion;
     this.religionCheck.CBLabel.Text = SK.Text("ReportFilter_Religion", "Religion");
     this.religionCheck.CBLabel.Color = ARGBColors.Black;
     this.religionCheck.CBLabel.Position = new Point(20, -1);
     this.religionCheck.CBLabel.Size = new Size(170, 0x19);
     this.religionCheck.CBLabel.Font = FontManager.GetFont("Arial", 10f, FontStyle.Regular);
     this.religionCheck.Data = 8;
     this.religionCheck.setCheckChangedDelegate(new CustomSelfDrawPanel.CSDCheckBox.CSD_CheckChangedDelegate(this.checkToggled));
     this.backgroundImage.addControl(this.religionCheck);
     this.researchCheck.CheckedImage = (Image) GFXLibrary.reports_checkbox_checked;
     this.researchCheck.UncheckedImage = (Image) GFXLibrary.reports_checkbox_empty;
     this.researchCheck.Position = new Point(num4, y + (2 * num));
     this.researchCheck.Checked = reportFilters.research;
     this.researchCheck.CBLabel.Text = SK.Text("ReportFilter_Research", "Research");
     this.researchCheck.CBLabel.Color = ARGBColors.Black;
     this.researchCheck.CBLabel.Position = new Point(20, -1);
     this.researchCheck.CBLabel.Size = new Size(170, 0x19);
     this.researchCheck.CBLabel.Font = FontManager.GetFont("Arial", 10f, FontStyle.Regular);
     this.researchCheck.Data = 9;
     this.researchCheck.setCheckChangedDelegate(new CustomSelfDrawPanel.CSDCheckBox.CSD_CheckChangedDelegate(this.checkToggled));
     this.backgroundImage.addControl(this.researchCheck);
     this.electionsCheck.CheckedImage = (Image) GFXLibrary.reports_checkbox_checked;
     this.electionsCheck.UncheckedImage = (Image) GFXLibrary.reports_checkbox_empty;
     this.electionsCheck.Position = new Point(num4, y + (3 * num));
     this.electionsCheck.Checked = reportFilters.elections;
     this.electionsCheck.CBLabel.Text = SK.Text("ReportFilter_Elections", "Elections");
     this.electionsCheck.CBLabel.Color = ARGBColors.Black;
     this.electionsCheck.CBLabel.Position = new Point(20, -1);
     this.electionsCheck.CBLabel.Size = new Size(170, 0x19);
     this.electionsCheck.CBLabel.Font = FontManager.GetFont("Arial", 10f, FontStyle.Regular);
     this.electionsCheck.Data = 10;
     this.electionsCheck.setCheckChangedDelegate(new CustomSelfDrawPanel.CSDCheckBox.CSD_CheckChangedDelegate(this.checkToggled));
     this.backgroundImage.addControl(this.electionsCheck);
     this.factionsCheck.CheckedImage = (Image) GFXLibrary.reports_checkbox_checked;
     this.factionsCheck.UncheckedImage = (Image) GFXLibrary.reports_checkbox_empty;
     this.factionsCheck.Position = new Point(num4, y + (4 * num));
     this.factionsCheck.Checked = reportFilters.factions;
     this.factionsCheck.CBLabel.Text = SK.Text("ReportFilter_Factions", "Factions");
     this.factionsCheck.CBLabel.Color = ARGBColors.Black;
     this.factionsCheck.CBLabel.Position = new Point(20, -1);
     this.factionsCheck.CBLabel.Size = new Size(170, 0x19);
     this.factionsCheck.CBLabel.Font = FontManager.GetFont("Arial", 10f, FontStyle.Regular);
     this.factionsCheck.Data = 11;
     this.factionsCheck.setCheckChangedDelegate(new CustomSelfDrawPanel.CSDCheckBox.CSD_CheckChangedDelegate(this.checkToggled));
     this.backgroundImage.addControl(this.factionsCheck);
     this.cardsCheck.CheckedImage = (Image) GFXLibrary.reports_checkbox_checked;
     this.cardsCheck.UncheckedImage = (Image) GFXLibrary.reports_checkbox_empty;
     this.cardsCheck.Position = new Point(num4, y + (5 * num));
     this.cardsCheck.Checked = reportFilters.cards;
     this.cardsCheck.CBLabel.Text = SK.Text("ReportFilter_Cards", "Cards");
     this.cardsCheck.CBLabel.Color = ARGBColors.Black;
     this.cardsCheck.CBLabel.Position = new Point(20, -1);
     this.cardsCheck.CBLabel.Size = new Size(170, 0x19);
     this.cardsCheck.CBLabel.Font = FontManager.GetFont("Arial", 10f, FontStyle.Regular);
     this.cardsCheck.Data = 12;
     this.cardsCheck.setCheckChangedDelegate(new CustomSelfDrawPanel.CSDCheckBox.CSD_CheckChangedDelegate(this.checkToggled));
     this.backgroundImage.addControl(this.cardsCheck);
     this.achievementsCheck.CheckedImage = (Image) GFXLibrary.reports_checkbox_checked;
     this.achievementsCheck.UncheckedImage = (Image) GFXLibrary.reports_checkbox_empty;
     this.achievementsCheck.Position = new Point(num4, y + (6 * num));
     this.achievementsCheck.Checked = reportFilters.achievements;
     this.achievementsCheck.CBLabel.Text = SK.Text("GENERIC_Achievements", "Achievements");
     this.achievementsCheck.CBLabel.Color = ARGBColors.Black;
     this.achievementsCheck.CBLabel.Position = new Point(20, -1);
     this.achievementsCheck.CBLabel.Size = new Size(170, 0x19);
     this.achievementsCheck.CBLabel.Font = FontManager.GetFont("Arial", 10f, FontStyle.Regular);
     this.achievementsCheck.Data = 13;
     this.achievementsCheck.setCheckChangedDelegate(new CustomSelfDrawPanel.CSDCheckBox.CSD_CheckChangedDelegate(this.checkToggled));
     this.backgroundImage.addControl(this.achievementsCheck);
     this.buyVillagesCheck.CheckedImage = (Image) GFXLibrary.reports_checkbox_checked;
     this.buyVillagesCheck.UncheckedImage = (Image) GFXLibrary.reports_checkbox_empty;
     this.buyVillagesCheck.Position = new Point(x, y + (7 * num));
     this.buyVillagesCheck.Checked = reportFilters.buyVillages;
     this.buyVillagesCheck.CBLabel.Text = SK.Text("ReportFilter_Village_Charter", "Village Charter");
     this.buyVillagesCheck.CBLabel.Color = ARGBColors.Black;
     this.buyVillagesCheck.CBLabel.Position = new Point(20, -1);
     this.buyVillagesCheck.CBLabel.Size = new Size(170, 0x19);
     if (Program.mySettings.LanguageIdent == "it")
     {
         this.buyVillagesCheck.CBLabel.Font = FontManager.GetFont("Arial", 8f, FontStyle.Regular);
     }
     else
     {
         this.buyVillagesCheck.CBLabel.Font = FontManager.GetFont("Arial", 10f, FontStyle.Regular);
     }
     this.buyVillagesCheck.Data = 14;
     this.buyVillagesCheck.setCheckChangedDelegate(new CustomSelfDrawPanel.CSDCheckBox.CSD_CheckChangedDelegate(this.checkToggled));
     this.backgroundImage.addControl(this.buyVillagesCheck);
     this.questsCheck.CheckedImage = (Image) GFXLibrary.reports_checkbox_checked;
     this.questsCheck.UncheckedImage = (Image) GFXLibrary.reports_checkbox_empty;
     this.questsCheck.Position = new Point(num4, y + (7 * num));
     this.questsCheck.Checked = reportFilters.quests;
     this.questsCheck.CBLabel.Text = SK.Text("GENERIC_Quests", "Quests");
     this.questsCheck.CBLabel.Color = ARGBColors.Black;
     this.questsCheck.CBLabel.Position = new Point(20, -1);
     this.questsCheck.CBLabel.Size = new Size(170, 0x19);
     this.questsCheck.CBLabel.Font = FontManager.GetFont("Arial", 10f, FontStyle.Regular);
     this.questsCheck.Data = 15;
     this.questsCheck.setCheckChangedDelegate(new CustomSelfDrawPanel.CSDCheckBox.CSD_CheckChangedDelegate(this.checkToggled));
     this.backgroundImage.addControl(this.questsCheck);
     this.capitalAttackCheck.CheckedImage = (Image) GFXLibrary.reports_checkbox_checked;
     this.capitalAttackCheck.UncheckedImage = (Image) GFXLibrary.reports_checkbox_empty;
     this.capitalAttackCheck.Position = new Point(x, y + (8 * num));
     this.capitalAttackCheck.Checked = ReportsPanel.Instance.ShowParishAttacks;
     this.capitalAttackCheck.CBLabel.Text = SK.Text("ReportFilter_Capital_Attacks", "Capital Attacks");
     this.capitalAttackCheck.CBLabel.Color = ARGBColors.Black;
     this.capitalAttackCheck.CBLabel.Position = new Point(20, -1);
     this.capitalAttackCheck.CBLabel.Size = new Size(170, 0x19);
     this.capitalAttackCheck.CBLabel.Font = FontManager.GetFont("Arial", 10f, FontStyle.Regular);
     this.capitalAttackCheck.Data = -2;
     this.capitalAttackCheck.Visible = !flag;
     this.capitalAttackCheck.setCheckChangedDelegate(new CustomSelfDrawPanel.CSDCheckBox.CSD_CheckChangedDelegate(this.checkToggled));
     this.backgroundImage.addControl(this.capitalAttackCheck);
     this.spinsCheck.CheckedImage = (Image) GFXLibrary.reports_checkbox_checked;
     this.spinsCheck.UncheckedImage = (Image) GFXLibrary.reports_checkbox_empty;
     this.spinsCheck.Position = new Point(num4, y + (8 * num));
     this.spinsCheck.Checked = reportFilters.spins;
     this.spinsCheck.CBLabel.Text = SK.Text("GENERIC_Wheel_Spins", "Wheel Spins");
     this.spinsCheck.CBLabel.Color = ARGBColors.Black;
     this.spinsCheck.CBLabel.Position = new Point(20, -1);
     this.spinsCheck.CBLabel.Size = new Size(170, 0x19);
     this.spinsCheck.CBLabel.Font = FontManager.GetFont("Arial", 10f, FontStyle.Regular);
     this.spinsCheck.Data = 0x10;
     this.spinsCheck.setCheckChangedDelegate(new CustomSelfDrawPanel.CSDCheckBox.CSD_CheckChangedDelegate(this.checkToggled));
     this.backgroundImage.addControl(this.spinsCheck);
     int num5 = flag ? 8 : 9;
     this.houseCheck.CheckedImage = (Image) GFXLibrary.reports_checkbox_checked;
     this.houseCheck.UncheckedImage = (Image) GFXLibrary.reports_checkbox_empty;
     this.houseCheck.Position = new Point(x, y + (num5 * num));
     this.houseCheck.Checked = reportFilters.house;
     this.houseCheck.CBLabel.Text = SK.Text("ReportFilter_House", "House");
     this.houseCheck.CBLabel.Color = ARGBColors.Black;
     this.houseCheck.CBLabel.Position = new Point(20, -1);
     this.houseCheck.CBLabel.Size = new Size(170, 0x19);
     this.houseCheck.CBLabel.Font = FontManager.GetFont("Arial", 10f, FontStyle.Regular);
     this.houseCheck.Data = 0x11;
     this.houseCheck.setCheckChangedDelegate(new CustomSelfDrawPanel.CSDCheckBox.CSD_CheckChangedDelegate(this.checkToggled));
     this.backgroundImage.addControl(this.houseCheck);
     this.villageLostCheck.CheckedImage = (Image) GFXLibrary.reports_checkbox_checked;
     this.villageLostCheck.UncheckedImage = (Image) GFXLibrary.reports_checkbox_empty;
     this.villageLostCheck.Position = new Point(num4, y + (9 * num));
     this.villageLostCheck.Checked = ReportsPanel.Instance.ShowVillageLost;
     this.villageLostCheck.CBLabel.Text = SK.Text("Reports_VillageLost", "Village Lost");
     this.villageLostCheck.CBLabel.Color = ARGBColors.Black;
     this.villageLostCheck.CBLabel.Position = new Point(20, -1);
     this.villageLostCheck.CBLabel.Size = new Size(170, 0x19);
     this.villageLostCheck.CBLabel.Font = FontManager.GetFont("Arial", 10f, FontStyle.Regular);
     this.villageLostCheck.Data = -4;
     this.villageLostCheck.Visible = !flag;
     this.villageLostCheck.setCheckChangedDelegate(new CustomSelfDrawPanel.CSDCheckBox.CSD_CheckChangedDelegate(this.checkToggled));
     this.backgroundImage.addControl(this.villageLostCheck);
     CustomSelfDrawPanel.CSDButton control = new CustomSelfDrawPanel.CSDButton {
         ImageNorm = (Image) GFXLibrary.mail2_button_blue_141wide_normal,
         ImageOver = (Image) GFXLibrary.mail2_button_blue_141wide_over,
         ImageClick = (Image) GFXLibrary.mail2_button_blue_141wide_pushed,
         Position = new Point(30, 270)
     };
     control.Text.Text = SK.Text("ReportFilter_Select_All", "Select All");
     control.Text.Alignment = CustomSelfDrawPanel.CSD_Text_Alignment.CENTER_CENTER;
     control.Text.Font = FontManager.GetFont("Arial", 9f, FontStyle.Bold);
     control.TextYOffset = -3;
     control.Text.Color = ARGBColors.Black;
     control.setClickDelegate(new CustomSelfDrawPanel.CSDControl.CSD_ClickDelegate(this.selectAllClicked), "ReportCapturePanel_select_all");
     control.Visible = !flag;
     this.backgroundImage.addControl(control);
     CustomSelfDrawPanel.CSDButton button2 = new CustomSelfDrawPanel.CSDButton {
         ImageNorm = (Image) GFXLibrary.mail2_button_blue_141wide_normal,
         ImageOver = (Image) GFXLibrary.mail2_button_blue_141wide_over,
         ImageClick = (Image) GFXLibrary.mail2_button_blue_141wide_pushed,
         Position = new Point(0xc0, 270)
     };
     button2.Text.Text = SK.Text("ReportFilter_Select_None", "Select None");
     button2.Text.Alignment = CustomSelfDrawPanel.CSD_Text_Alignment.CENTER_CENTER;
     button2.Text.Font = FontManager.GetFont("Arial", 9f, FontStyle.Bold);
     button2.TextYOffset = -3;
     button2.Text.Color = ARGBColors.Black;
     button2.setClickDelegate(new CustomSelfDrawPanel.CSDControl.CSD_ClickDelegate(this.selectNoneClicked), "ReportCapturePanel_select_none");
     button2.Visible = !flag;
     this.backgroundImage.addControl(button2);
     this.readMessagesCheck.CheckedImage = (Image) GFXLibrary.reports_checkbox_checked;
     this.readMessagesCheck.UncheckedImage = (Image) GFXLibrary.reports_checkbox_empty;
     if (Program.mySettings.LanguageIdent == "pl")
     {
         this.readMessagesCheck.Position = new Point(x - 20, 330);
     }
     else
     {
         this.readMessagesCheck.Position = new Point(x, 330);
     }
     this.readMessagesCheck.Checked = ReportsPanel.Instance.ShowReadMessages;
     this.readMessagesCheck.CBLabel.Text = SK.Text("ReportFilter_Show_Read_Messages", "Show Read Messages");
     this.readMessagesCheck.CBLabel.Color = ARGBColors.Black;
     if (Program.mySettings.LanguageIdent == "de")
     {
         this.readMessagesCheck.CBLabel.Position = new Point(10, -1);
     }
     else
     {
         this.readMessagesCheck.CBLabel.Position = new Point(20, -1);
     }
     this.readMessagesCheck.CBLabel.Size = new Size(310, 0x19);
     this.readMessagesCheck.CBLabel.Font = FontManager.GetFont("Arial", 10f, FontStyle.Regular);
     this.readMessagesCheck.Data = -1;
     this.readMessagesCheck.setCheckChangedDelegate(new CustomSelfDrawPanel.CSDCheckBox.CSD_CheckChangedDelegate(this.checkToggled));
     this.readMessagesCheck.Visible = !flag;
     this.backgroundImage.addControl(this.readMessagesCheck);
     this.forwardedOnlyCheck.CheckedImage = (Image) GFXLibrary.reports_checkbox_checked;
     this.forwardedOnlyCheck.UncheckedImage = (Image) GFXLibrary.reports_checkbox_empty;
     if (Program.mySettings.LanguageIdent == "pl")
     {
         this.forwardedOnlyCheck.Position = new Point(x - 20, 0x131);
     }
     else
     {
         this.forwardedOnlyCheck.Position = new Point(x, 0x131);
     }
     this.forwardedOnlyCheck.Checked = ReportsPanel.Instance.ShowForwardedMessagesOnly;
     this.forwardedOnlyCheck.CBLabel.Text = SK.Text("ReportFilter_Show_Forwarded_Only_Messages", "Show Forwarded Messages Only");
     this.forwardedOnlyCheck.CBLabel.Color = ARGBColors.Black;
     this.forwardedOnlyCheck.CBLabel.Position = new Point(20, -1);
     this.forwardedOnlyCheck.CBLabel.Size = new Size(310, 0x19);
     this.forwardedOnlyCheck.CBLabel.Font = FontManager.GetFont("Arial", 10f, FontStyle.Regular);
     this.forwardedOnlyCheck.Data = -3;
     this.forwardedOnlyCheck.setCheckChangedDelegate(new CustomSelfDrawPanel.CSDCheckBox.CSD_CheckChangedDelegate(this.checkToggled));
     this.forwardedOnlyCheck.Visible = !flag;
     this.backgroundImage.addControl(this.forwardedOnlyCheck);
     parent.Size = this.backgroundImage.Size;
     base.Invalidate();
     parent.Invalidate();
 }
 public void init(int mode, ReportCapturePopup parent)
 {
     this.m_mode = mode;
     base.clearControls();
     this.backgroundImage.Image = (Image) GFXLibrary.popup_background_01;
     this.backgroundImage.Position = new Point(0, 0);
     base.addControl(this.backgroundImage);
     float pointSize = 9f;
     if (Program.mySettings.LanguageIdent == "pl")
     {
         pointSize = 8f;
     }
     if (mode == 2)
     {
         this.captureLabel.Text = SK.Text("Report_Marking_And_Deleting", "Report Marking and Deleting");
     }
     this.captureLabel.Color = ARGBColors.White;
     this.captureLabel.Position = new Point(13, 7);
     this.captureLabel.Size = new Size(0x14f, 20);
     this.captureLabel.Font = FontManager.GetFont("Arial", 12f, FontStyle.Bold);
     this.captureLabel.Alignment = CustomSelfDrawPanel.CSD_Text_Alignment.TOP_LEFT;
     this.backgroundImage.addControl(this.captureLabel);
     this.okButton.ImageNorm = (Image) GFXLibrary.button_blue_01_normal;
     this.okButton.ImageOver = (Image) GFXLibrary.button_blue_01_over;
     this.okButton.ImageClick = (Image) GFXLibrary.button_blue_01_in;
     this.okButton.Position = new Point(240, 0x145);
     this.okButton.Text.Text = SK.Text("GENERIC_OK", "OK");
     this.okButton.Text.Font = FontManager.GetFont("Arial", 10f, FontStyle.Regular);
     this.okButton.Text.Color = ARGBColors.Black;
     this.okButton.setClickDelegate(new CustomSelfDrawPanel.CSDControl.CSD_ClickDelegate(this.okClicked), "ReportDeletePanel_ok");
     this.backgroundImage.addControl(this.okButton);
     CustomSelfDrawPanel.CSDLabel control = new CustomSelfDrawPanel.CSDLabel {
         Text = SK.Text("ReportDeleting_Delete_Reports", "Delete Reports"),
         Color = ARGBColors.Black,
         Position = new Point(0, 50),
         Size = new Size(this.backgroundImage.Width, 20),
         Font = FontManager.GetFont("Arial", 12f, FontStyle.Bold),
         Alignment = CustomSelfDrawPanel.CSD_Text_Alignment.TOP_CENTER
     };
     this.backgroundImage.addControl(control);
     CustomSelfDrawPanel.CSDButton button = new CustomSelfDrawPanel.CSDButton {
         ImageNorm = (Image) GFXLibrary.mail2_button_blue_141wide_normal,
         ImageOver = (Image) GFXLibrary.mail2_button_blue_141wide_over,
         ImageClick = (Image) GFXLibrary.mail2_button_blue_141wide_pushed,
         Position = new Point((this.backgroundImage.Width - GFXLibrary.mail2_button_blue_141wide_normal.Width) / 2, 70)
     };
     button.Text.Text = SK.Text("ReportDeleting_All", "All");
     button.Text.Alignment = CustomSelfDrawPanel.CSD_Text_Alignment.CENTER_CENTER;
     button.Text.Font = FontManager.GetFont("Arial", pointSize, FontStyle.Bold);
     button.TextYOffset = -3;
     button.Text.Color = ARGBColors.Black;
     button.setClickDelegate(() => ReportsPanel.Instance.deleteAllReports(), "ReportDeletePanel_delete_all");
     this.backgroundImage.addControl(button);
     CustomSelfDrawPanel.CSDButton button2 = new CustomSelfDrawPanel.CSDButton {
         ImageNorm = (Image) GFXLibrary.mail2_button_blue_141wide_normal,
         ImageOver = (Image) GFXLibrary.mail2_button_blue_141wide_over,
         ImageClick = (Image) GFXLibrary.mail2_button_blue_141wide_pushed,
         Position = new Point((this.backgroundImage.Width - GFXLibrary.mail2_button_blue_141wide_normal.Width) / 2, 100)
     };
     button2.Text.Text = SK.Text("ReportDeleting_All_Shown", "All Shown");
     button2.Text.Alignment = CustomSelfDrawPanel.CSD_Text_Alignment.CENTER_CENTER;
     button2.Text.Font = FontManager.GetFont("Arial", pointSize, FontStyle.Bold);
     button2.TextYOffset = -3;
     button2.Text.Color = ARGBColors.Black;
     button2.setClickDelegate(() => ReportsPanel.Instance.deleteShownReports(), "ReportDeletePanel_delete_shown");
     this.backgroundImage.addControl(button2);
     CustomSelfDrawPanel.CSDButton button3 = new CustomSelfDrawPanel.CSDButton {
         ImageNorm = (Image) GFXLibrary.mail2_button_blue_141wide_normal,
         ImageOver = (Image) GFXLibrary.mail2_button_blue_141wide_over,
         ImageClick = (Image) GFXLibrary.mail2_button_blue_141wide_pushed,
         Position = new Point((this.backgroundImage.Width - GFXLibrary.mail2_button_blue_141wide_normal.Width) / 2, 130)
     };
     button3.Text.Text = SK.Text("ReportDeleting_All_Marked", "All Marked");
     button3.Text.Alignment = CustomSelfDrawPanel.CSD_Text_Alignment.CENTER_CENTER;
     button3.Text.Font = FontManager.GetFont("Arial", pointSize, FontStyle.Bold);
     button3.TextYOffset = -3;
     button3.Text.Color = ARGBColors.Black;
     button3.setClickDelegate(() => ReportsPanel.Instance.deleteMarkedReports(), "ReportDeletePanel_delete_marked");
     this.backgroundImage.addControl(button3);
     CustomSelfDrawPanel.CSDLabel label2 = new CustomSelfDrawPanel.CSDLabel {
         Text = SK.Text("ReportDeleting_Mark_As_Read", "Mark Reports As Read"),
         Color = ARGBColors.Black,
         Position = new Point(0, 170),
         Size = new Size(this.backgroundImage.Width, 20),
         Font = FontManager.GetFont("Arial", 12f, FontStyle.Bold),
         Alignment = CustomSelfDrawPanel.CSD_Text_Alignment.TOP_CENTER
     };
     this.backgroundImage.addControl(label2);
     CustomSelfDrawPanel.CSDButton button4 = new CustomSelfDrawPanel.CSDButton {
         ImageNorm = (Image) GFXLibrary.mail2_button_blue_141wide_normal,
         ImageOver = (Image) GFXLibrary.mail2_button_blue_141wide_over,
         ImageClick = (Image) GFXLibrary.mail2_button_blue_141wide_pushed,
         Position = new Point((this.backgroundImage.Width - GFXLibrary.mail2_button_blue_141wide_normal.Width) / 2, 190)
     };
     button4.Text.Text = SK.Text("ReportDeleting_All", "All");
     button4.Text.Alignment = CustomSelfDrawPanel.CSD_Text_Alignment.CENTER_CENTER;
     button4.Text.Font = FontManager.GetFont("Arial", pointSize, FontStyle.Bold);
     button4.TextYOffset = -3;
     button4.Text.Color = ARGBColors.Black;
     button4.setClickDelegate(() => ReportsPanel.Instance.markAsReadAllReports(), "ReportDeletePanel_mark_all_as_read");
     this.backgroundImage.addControl(button4);
     CustomSelfDrawPanel.CSDButton button5 = new CustomSelfDrawPanel.CSDButton {
         ImageNorm = (Image) GFXLibrary.mail2_button_blue_141wide_normal,
         ImageOver = (Image) GFXLibrary.mail2_button_blue_141wide_over,
         ImageClick = (Image) GFXLibrary.mail2_button_blue_141wide_pushed,
         Position = new Point((this.backgroundImage.Width - GFXLibrary.mail2_button_blue_141wide_normal.Width) / 2, 220)
     };
     button5.Text.Text = SK.Text("ReportDeleting_All_Shown", "All Shown");
     button5.Text.Alignment = CustomSelfDrawPanel.CSD_Text_Alignment.CENTER_CENTER;
     button5.Text.Font = FontManager.GetFont("Arial", pointSize, FontStyle.Bold);
     button5.TextYOffset = -3;
     button5.Text.Color = ARGBColors.Black;
     button5.setClickDelegate(() => ReportsPanel.Instance.markAsReadShownReports(), "ReportDeletePanel_mark_shown_as_read");
     this.backgroundImage.addControl(button5);
     CustomSelfDrawPanel.CSDButton button6 = new CustomSelfDrawPanel.CSDButton {
         ImageNorm = (Image) GFXLibrary.mail2_button_blue_141wide_normal,
         ImageOver = (Image) GFXLibrary.mail2_button_blue_141wide_over,
         ImageClick = (Image) GFXLibrary.mail2_button_blue_141wide_pushed,
         Position = new Point((this.backgroundImage.Width - GFXLibrary.mail2_button_blue_141wide_normal.Width) / 2, 250)
     };
     button6.Text.Text = SK.Text("ReportDeleting_All_Marked", "All Marked");
     button6.Text.Alignment = CustomSelfDrawPanel.CSD_Text_Alignment.CENTER_CENTER;
     button6.Text.Font = FontManager.GetFont("Arial", pointSize, FontStyle.Bold);
     button6.TextYOffset = -3;
     button6.Text.Color = ARGBColors.Black;
     button6.setClickDelegate(() => ReportsPanel.Instance.markAsReadMarkedReports(), "ReportDeletePanel_mark_marked_as_read");
     this.backgroundImage.addControl(button6);
     parent.Size = this.backgroundImage.Size;
     base.Invalidate();
     parent.Invalidate();
 }
        public void init(int mode, ReportCapturePopup parent)
        {
            this.m_mode = mode;
            base.clearControls();
            this.backgroundImage.Image    = (Image)GFXLibrary.popup_background_01;
            this.backgroundImage.Position = new Point(0, 0);
            base.addControl(this.backgroundImage);
            bool flag = false;

            if (mode == 0)
            {
                this.captureLabel.Text = SK.Text("Report_Capturing", "Report Capturing");
                flag = true;
            }
            else
            {
                this.captureLabel.Text = SK.Text("Report_Filtering", "Report Filtering");
            }
            this.captureLabel.Color     = ARGBColors.White;
            this.captureLabel.Position  = new Point(13, 7);
            this.captureLabel.Size      = new Size(0x14f, 20);
            this.captureLabel.Font      = FontManager.GetFont("Arial", 12f, FontStyle.Bold);
            this.captureLabel.Alignment = CustomSelfDrawPanel.CSD_Text_Alignment.TOP_LEFT;
            this.backgroundImage.addControl(this.captureLabel);
            this.okButton.ImageNorm  = (Image)GFXLibrary.button_blue_01_normal;
            this.okButton.ImageOver  = (Image)GFXLibrary.button_blue_01_over;
            this.okButton.ImageClick = (Image)GFXLibrary.button_blue_01_in;
            this.okButton.Position   = new Point(240, 0x145);
            this.okButton.Text.Text  = SK.Text("GENERIC_OK", "OK");
            this.okButton.Text.Font  = FontManager.GetFont("Arial", 10f, FontStyle.Regular);
            this.okButton.Text.Color = ARGBColors.Black;
            this.okButton.setClickDelegate(new CustomSelfDrawPanel.CSDControl.CSD_ClickDelegate(this.okClicked), "ReportCapturePanel_ok");
            this.backgroundImage.addControl(this.okButton);
            this.cancelButton.ImageNorm  = (Image)GFXLibrary.button_blue_01_normal;
            this.cancelButton.ImageOver  = (Image)GFXLibrary.button_blue_01_over;
            this.cancelButton.ImageClick = (Image)GFXLibrary.button_blue_01_in;
            this.cancelButton.Position   = new Point(0x7c, 0x145);
            this.cancelButton.Text.Text  = SK.Text("GENERIC_Cancel", "Cancel");
            this.cancelButton.Text.Font  = FontManager.GetFont("Arial", 10f, FontStyle.Regular);
            this.cancelButton.Text.Color = ARGBColors.Black;
            this.cancelButton.setClickDelegate(delegate {
                InterfaceMgr.Instance.closeReportCaptureWindow();
                InterfaceMgr.Instance.ParentForm.TopMost = true;
                InterfaceMgr.Instance.ParentForm.TopMost = false;
            }, "ReportCapturePanel_cancel");
            this.cancelButton.Visible = flag;
            this.backgroundImage.addControl(this.cancelButton);
            ReportFilterList reportFilters = null;

            if (flag)
            {
                reportFilters = RemoteServices.Instance.ReportFilters;
            }
            else
            {
                reportFilters = ReportsPanel.Instance.Filters;
            }
            int num  = 0x19;
            int y    = 0x37;
            int x    = 0x2d;
            int num4 = 210;

            if (!flag)
            {
                y  -= 12;
                num = 0x16;
            }
            if (Program.mySettings.LanguageIdent == "de")
            {
                x    -= 20;
                num4 += 20;
            }
            this.attackCheck.CheckedImage     = (Image)GFXLibrary.reports_checkbox_checked;
            this.attackCheck.UncheckedImage   = (Image)GFXLibrary.reports_checkbox_empty;
            this.attackCheck.Position         = new Point(x, y);
            this.attackCheck.Checked          = reportFilters.attacks;
            this.attackCheck.CBLabel.Text     = SK.Text("ReportFilter_Attacks", "Attacks");
            this.attackCheck.CBLabel.Color    = ARGBColors.Black;
            this.attackCheck.CBLabel.Position = new Point(20, -1);
            this.attackCheck.CBLabel.Size     = new Size(170, 0x19);
            this.attackCheck.CBLabel.Font     = FontManager.GetFont("Arial", 10f, FontStyle.Regular);
            this.attackCheck.Data             = 0;
            this.attackCheck.setCheckChangedDelegate(new CustomSelfDrawPanel.CSDCheckBox.CSD_CheckChangedDelegate(this.checkToggled));
            this.backgroundImage.addControl(this.attackCheck);
            this.defenceCheck.CheckedImage     = (Image)GFXLibrary.reports_checkbox_checked;
            this.defenceCheck.UncheckedImage   = (Image)GFXLibrary.reports_checkbox_empty;
            this.defenceCheck.Position         = new Point(x, y + num);
            this.defenceCheck.Checked          = reportFilters.defense;
            this.defenceCheck.CBLabel.Text     = SK.Text("ReportFilter_Defense", "Defense");
            this.defenceCheck.CBLabel.Color    = ARGBColors.Black;
            this.defenceCheck.CBLabel.Position = new Point(20, -1);
            this.defenceCheck.CBLabel.Size     = new Size(170, 0x19);
            this.defenceCheck.CBLabel.Font     = FontManager.GetFont("Arial", 10f, FontStyle.Regular);
            this.defenceCheck.Data             = 1;
            this.defenceCheck.setCheckChangedDelegate(new CustomSelfDrawPanel.CSDCheckBox.CSD_CheckChangedDelegate(this.checkToggled));
            this.backgroundImage.addControl(this.defenceCheck);
            this.enemyCheck.CheckedImage     = (Image)GFXLibrary.reports_checkbox_checked;
            this.enemyCheck.UncheckedImage   = (Image)GFXLibrary.reports_checkbox_empty;
            this.enemyCheck.Position         = new Point(x, y + (2 * num));
            this.enemyCheck.Checked          = reportFilters.enemyWarnings;
            this.enemyCheck.CBLabel.Text     = SK.Text("ReportFilter_Enemy_Attacks", "Enemy Attacks");
            this.enemyCheck.CBLabel.Color    = ARGBColors.Black;
            this.enemyCheck.CBLabel.Position = new Point(20, -1);
            this.enemyCheck.CBLabel.Size     = new Size(170, 0x19);
            this.enemyCheck.CBLabel.Font     = FontManager.GetFont("Arial", 10f, FontStyle.Regular);
            this.enemyCheck.Data             = 2;
            this.enemyCheck.setCheckChangedDelegate(new CustomSelfDrawPanel.CSDCheckBox.CSD_CheckChangedDelegate(this.checkToggled));
            this.backgroundImage.addControl(this.enemyCheck);
            this.reinforceCheck.CheckedImage     = (Image)GFXLibrary.reports_checkbox_checked;
            this.reinforceCheck.UncheckedImage   = (Image)GFXLibrary.reports_checkbox_empty;
            this.reinforceCheck.Position         = new Point(x, y + (3 * num));
            this.reinforceCheck.Checked          = reportFilters.reinforcements;
            this.reinforceCheck.CBLabel.Text     = SK.Text("ReportFilter_Reinforcements", "Reinforcements");
            this.reinforceCheck.CBLabel.Color    = ARGBColors.Black;
            this.reinforceCheck.CBLabel.Position = new Point(20, -1);
            this.reinforceCheck.CBLabel.Size     = new Size(190, 0x19);
            this.reinforceCheck.CBLabel.Font     = FontManager.GetFont("Arial", 10f, FontStyle.Regular);
            this.reinforceCheck.Data             = 3;
            this.reinforceCheck.setCheckChangedDelegate(new CustomSelfDrawPanel.CSDCheckBox.CSD_CheckChangedDelegate(this.checkToggled));
            this.backgroundImage.addControl(this.reinforceCheck);
            this.scoutingCheck.CheckedImage     = (Image)GFXLibrary.reports_checkbox_checked;
            this.scoutingCheck.UncheckedImage   = (Image)GFXLibrary.reports_checkbox_empty;
            this.scoutingCheck.Position         = new Point(x, y + (4 * num));
            this.scoutingCheck.Checked          = reportFilters.scouting;
            this.scoutingCheck.CBLabel.Text     = SK.Text("ReportFilter_Scouting", "Scouting");
            this.scoutingCheck.CBLabel.Color    = ARGBColors.Black;
            this.scoutingCheck.CBLabel.Position = new Point(20, -1);
            this.scoutingCheck.CBLabel.Size     = new Size(170, 0x19);
            if (Program.mySettings.LanguageIdent == "pt")
            {
                this.scoutingCheck.CBLabel.Font = FontManager.GetFont("Arial", 9f, FontStyle.Regular);
            }
            else
            {
                this.scoutingCheck.CBLabel.Font = FontManager.GetFont("Arial", 10f, FontStyle.Regular);
            }
            this.scoutingCheck.Data = 4;
            this.scoutingCheck.setCheckChangedDelegate(new CustomSelfDrawPanel.CSDCheckBox.CSD_CheckChangedDelegate(this.checkToggled));
            this.backgroundImage.addControl(this.scoutingCheck);
            this.foragingCheck.CheckedImage     = (Image)GFXLibrary.reports_checkbox_checked;
            this.foragingCheck.UncheckedImage   = (Image)GFXLibrary.reports_checkbox_empty;
            this.foragingCheck.Position         = new Point(x, y + (5 * num));
            this.foragingCheck.Checked          = reportFilters.foraging;
            this.foragingCheck.CBLabel.Text     = SK.Text("ReportFilter_Foraging", "Foraging");
            this.foragingCheck.CBLabel.Color    = ARGBColors.Black;
            this.foragingCheck.CBLabel.Position = new Point(20, -1);
            this.foragingCheck.CBLabel.Size     = new Size(170, 0x19);
            this.foragingCheck.CBLabel.Font     = FontManager.GetFont("Arial", 10f, FontStyle.Regular);
            this.foragingCheck.Data             = 5;
            this.foragingCheck.setCheckChangedDelegate(new CustomSelfDrawPanel.CSDCheckBox.CSD_CheckChangedDelegate(this.checkToggled));
            this.backgroundImage.addControl(this.foragingCheck);
            this.tradeCheck.CheckedImage     = (Image)GFXLibrary.reports_checkbox_checked;
            this.tradeCheck.UncheckedImage   = (Image)GFXLibrary.reports_checkbox_empty;
            this.tradeCheck.Position         = new Point(x, y + (6 * num));
            this.tradeCheck.Checked          = reportFilters.trade;
            this.tradeCheck.CBLabel.Text     = SK.Text("ReportFilter_Trade", "Trade");
            this.tradeCheck.CBLabel.Color    = ARGBColors.Black;
            this.tradeCheck.CBLabel.Position = new Point(20, -1);
            this.tradeCheck.CBLabel.Size     = new Size(170, 0x19);
            this.tradeCheck.CBLabel.Font     = FontManager.GetFont("Arial", 10f, FontStyle.Regular);
            this.tradeCheck.Data             = 6;
            this.tradeCheck.setCheckChangedDelegate(new CustomSelfDrawPanel.CSDCheckBox.CSD_CheckChangedDelegate(this.checkToggled));
            this.backgroundImage.addControl(this.tradeCheck);
            this.vassalsCheck.CheckedImage     = (Image)GFXLibrary.reports_checkbox_checked;
            this.vassalsCheck.UncheckedImage   = (Image)GFXLibrary.reports_checkbox_empty;
            this.vassalsCheck.Position         = new Point(num4, y);
            this.vassalsCheck.Checked          = reportFilters.vassals;
            this.vassalsCheck.CBLabel.Text     = SK.Text("ReportFilter_Vassals", "Vassals");
            this.vassalsCheck.CBLabel.Color    = ARGBColors.Black;
            this.vassalsCheck.CBLabel.Position = new Point(20, -1);
            this.vassalsCheck.CBLabel.Size     = new Size(170, 0x19);
            this.vassalsCheck.CBLabel.Font     = FontManager.GetFont("Arial", 10f, FontStyle.Regular);
            this.vassalsCheck.Data             = 7;
            this.vassalsCheck.setCheckChangedDelegate(new CustomSelfDrawPanel.CSDCheckBox.CSD_CheckChangedDelegate(this.checkToggled));
            this.backgroundImage.addControl(this.vassalsCheck);
            this.religionCheck.CheckedImage     = (Image)GFXLibrary.reports_checkbox_checked;
            this.religionCheck.UncheckedImage   = (Image)GFXLibrary.reports_checkbox_empty;
            this.religionCheck.Position         = new Point(num4, y + num);
            this.religionCheck.Checked          = reportFilters.religion;
            this.religionCheck.CBLabel.Text     = SK.Text("ReportFilter_Religion", "Religion");
            this.religionCheck.CBLabel.Color    = ARGBColors.Black;
            this.religionCheck.CBLabel.Position = new Point(20, -1);
            this.religionCheck.CBLabel.Size     = new Size(170, 0x19);
            this.religionCheck.CBLabel.Font     = FontManager.GetFont("Arial", 10f, FontStyle.Regular);
            this.religionCheck.Data             = 8;
            this.religionCheck.setCheckChangedDelegate(new CustomSelfDrawPanel.CSDCheckBox.CSD_CheckChangedDelegate(this.checkToggled));
            this.backgroundImage.addControl(this.religionCheck);
            this.researchCheck.CheckedImage     = (Image)GFXLibrary.reports_checkbox_checked;
            this.researchCheck.UncheckedImage   = (Image)GFXLibrary.reports_checkbox_empty;
            this.researchCheck.Position         = new Point(num4, y + (2 * num));
            this.researchCheck.Checked          = reportFilters.research;
            this.researchCheck.CBLabel.Text     = SK.Text("ReportFilter_Research", "Research");
            this.researchCheck.CBLabel.Color    = ARGBColors.Black;
            this.researchCheck.CBLabel.Position = new Point(20, -1);
            this.researchCheck.CBLabel.Size     = new Size(170, 0x19);
            this.researchCheck.CBLabel.Font     = FontManager.GetFont("Arial", 10f, FontStyle.Regular);
            this.researchCheck.Data             = 9;
            this.researchCheck.setCheckChangedDelegate(new CustomSelfDrawPanel.CSDCheckBox.CSD_CheckChangedDelegate(this.checkToggled));
            this.backgroundImage.addControl(this.researchCheck);
            this.electionsCheck.CheckedImage     = (Image)GFXLibrary.reports_checkbox_checked;
            this.electionsCheck.UncheckedImage   = (Image)GFXLibrary.reports_checkbox_empty;
            this.electionsCheck.Position         = new Point(num4, y + (3 * num));
            this.electionsCheck.Checked          = reportFilters.elections;
            this.electionsCheck.CBLabel.Text     = SK.Text("ReportFilter_Elections", "Elections");
            this.electionsCheck.CBLabel.Color    = ARGBColors.Black;
            this.electionsCheck.CBLabel.Position = new Point(20, -1);
            this.electionsCheck.CBLabel.Size     = new Size(170, 0x19);
            this.electionsCheck.CBLabel.Font     = FontManager.GetFont("Arial", 10f, FontStyle.Regular);
            this.electionsCheck.Data             = 10;
            this.electionsCheck.setCheckChangedDelegate(new CustomSelfDrawPanel.CSDCheckBox.CSD_CheckChangedDelegate(this.checkToggled));
            this.backgroundImage.addControl(this.electionsCheck);
            this.factionsCheck.CheckedImage     = (Image)GFXLibrary.reports_checkbox_checked;
            this.factionsCheck.UncheckedImage   = (Image)GFXLibrary.reports_checkbox_empty;
            this.factionsCheck.Position         = new Point(num4, y + (4 * num));
            this.factionsCheck.Checked          = reportFilters.factions;
            this.factionsCheck.CBLabel.Text     = SK.Text("ReportFilter_Factions", "Factions");
            this.factionsCheck.CBLabel.Color    = ARGBColors.Black;
            this.factionsCheck.CBLabel.Position = new Point(20, -1);
            this.factionsCheck.CBLabel.Size     = new Size(170, 0x19);
            this.factionsCheck.CBLabel.Font     = FontManager.GetFont("Arial", 10f, FontStyle.Regular);
            this.factionsCheck.Data             = 11;
            this.factionsCheck.setCheckChangedDelegate(new CustomSelfDrawPanel.CSDCheckBox.CSD_CheckChangedDelegate(this.checkToggled));
            this.backgroundImage.addControl(this.factionsCheck);
            this.cardsCheck.CheckedImage     = (Image)GFXLibrary.reports_checkbox_checked;
            this.cardsCheck.UncheckedImage   = (Image)GFXLibrary.reports_checkbox_empty;
            this.cardsCheck.Position         = new Point(num4, y + (5 * num));
            this.cardsCheck.Checked          = reportFilters.cards;
            this.cardsCheck.CBLabel.Text     = SK.Text("ReportFilter_Cards", "Cards");
            this.cardsCheck.CBLabel.Color    = ARGBColors.Black;
            this.cardsCheck.CBLabel.Position = new Point(20, -1);
            this.cardsCheck.CBLabel.Size     = new Size(170, 0x19);
            this.cardsCheck.CBLabel.Font     = FontManager.GetFont("Arial", 10f, FontStyle.Regular);
            this.cardsCheck.Data             = 12;
            this.cardsCheck.setCheckChangedDelegate(new CustomSelfDrawPanel.CSDCheckBox.CSD_CheckChangedDelegate(this.checkToggled));
            this.backgroundImage.addControl(this.cardsCheck);
            this.achievementsCheck.CheckedImage     = (Image)GFXLibrary.reports_checkbox_checked;
            this.achievementsCheck.UncheckedImage   = (Image)GFXLibrary.reports_checkbox_empty;
            this.achievementsCheck.Position         = new Point(num4, y + (6 * num));
            this.achievementsCheck.Checked          = reportFilters.achievements;
            this.achievementsCheck.CBLabel.Text     = SK.Text("GENERIC_Achievements", "Achievements");
            this.achievementsCheck.CBLabel.Color    = ARGBColors.Black;
            this.achievementsCheck.CBLabel.Position = new Point(20, -1);
            this.achievementsCheck.CBLabel.Size     = new Size(170, 0x19);
            this.achievementsCheck.CBLabel.Font     = FontManager.GetFont("Arial", 10f, FontStyle.Regular);
            this.achievementsCheck.Data             = 13;
            this.achievementsCheck.setCheckChangedDelegate(new CustomSelfDrawPanel.CSDCheckBox.CSD_CheckChangedDelegate(this.checkToggled));
            this.backgroundImage.addControl(this.achievementsCheck);
            this.buyVillagesCheck.CheckedImage     = (Image)GFXLibrary.reports_checkbox_checked;
            this.buyVillagesCheck.UncheckedImage   = (Image)GFXLibrary.reports_checkbox_empty;
            this.buyVillagesCheck.Position         = new Point(x, y + (7 * num));
            this.buyVillagesCheck.Checked          = reportFilters.buyVillages;
            this.buyVillagesCheck.CBLabel.Text     = SK.Text("ReportFilter_Village_Charter", "Village Charter");
            this.buyVillagesCheck.CBLabel.Color    = ARGBColors.Black;
            this.buyVillagesCheck.CBLabel.Position = new Point(20, -1);
            this.buyVillagesCheck.CBLabel.Size     = new Size(170, 0x19);
            if (Program.mySettings.LanguageIdent == "it")
            {
                this.buyVillagesCheck.CBLabel.Font = FontManager.GetFont("Arial", 8f, FontStyle.Regular);
            }
            else
            {
                this.buyVillagesCheck.CBLabel.Font = FontManager.GetFont("Arial", 10f, FontStyle.Regular);
            }
            this.buyVillagesCheck.Data = 14;
            this.buyVillagesCheck.setCheckChangedDelegate(new CustomSelfDrawPanel.CSDCheckBox.CSD_CheckChangedDelegate(this.checkToggled));
            this.backgroundImage.addControl(this.buyVillagesCheck);
            this.questsCheck.CheckedImage     = (Image)GFXLibrary.reports_checkbox_checked;
            this.questsCheck.UncheckedImage   = (Image)GFXLibrary.reports_checkbox_empty;
            this.questsCheck.Position         = new Point(num4, y + (7 * num));
            this.questsCheck.Checked          = reportFilters.quests;
            this.questsCheck.CBLabel.Text     = SK.Text("GENERIC_Quests", "Quests");
            this.questsCheck.CBLabel.Color    = ARGBColors.Black;
            this.questsCheck.CBLabel.Position = new Point(20, -1);
            this.questsCheck.CBLabel.Size     = new Size(170, 0x19);
            this.questsCheck.CBLabel.Font     = FontManager.GetFont("Arial", 10f, FontStyle.Regular);
            this.questsCheck.Data             = 15;
            this.questsCheck.setCheckChangedDelegate(new CustomSelfDrawPanel.CSDCheckBox.CSD_CheckChangedDelegate(this.checkToggled));
            this.backgroundImage.addControl(this.questsCheck);
            this.capitalAttackCheck.CheckedImage     = (Image)GFXLibrary.reports_checkbox_checked;
            this.capitalAttackCheck.UncheckedImage   = (Image)GFXLibrary.reports_checkbox_empty;
            this.capitalAttackCheck.Position         = new Point(x, y + (8 * num));
            this.capitalAttackCheck.Checked          = ReportsPanel.Instance.ShowParishAttacks;
            this.capitalAttackCheck.CBLabel.Text     = SK.Text("ReportFilter_Capital_Attacks", "Capital Attacks");
            this.capitalAttackCheck.CBLabel.Color    = ARGBColors.Black;
            this.capitalAttackCheck.CBLabel.Position = new Point(20, -1);
            this.capitalAttackCheck.CBLabel.Size     = new Size(170, 0x19);
            this.capitalAttackCheck.CBLabel.Font     = FontManager.GetFont("Arial", 10f, FontStyle.Regular);
            this.capitalAttackCheck.Data             = -2;
            this.capitalAttackCheck.Visible          = !flag;
            this.capitalAttackCheck.setCheckChangedDelegate(new CustomSelfDrawPanel.CSDCheckBox.CSD_CheckChangedDelegate(this.checkToggled));
            this.backgroundImage.addControl(this.capitalAttackCheck);
            this.spinsCheck.CheckedImage     = (Image)GFXLibrary.reports_checkbox_checked;
            this.spinsCheck.UncheckedImage   = (Image)GFXLibrary.reports_checkbox_empty;
            this.spinsCheck.Position         = new Point(num4, y + (8 * num));
            this.spinsCheck.Checked          = reportFilters.spins;
            this.spinsCheck.CBLabel.Text     = SK.Text("GENERIC_Wheel_Spins", "Wheel Spins");
            this.spinsCheck.CBLabel.Color    = ARGBColors.Black;
            this.spinsCheck.CBLabel.Position = new Point(20, -1);
            this.spinsCheck.CBLabel.Size     = new Size(170, 0x19);
            this.spinsCheck.CBLabel.Font     = FontManager.GetFont("Arial", 10f, FontStyle.Regular);
            this.spinsCheck.Data             = 0x10;
            this.spinsCheck.setCheckChangedDelegate(new CustomSelfDrawPanel.CSDCheckBox.CSD_CheckChangedDelegate(this.checkToggled));
            this.backgroundImage.addControl(this.spinsCheck);
            int num5 = flag ? 8 : 9;

            this.houseCheck.CheckedImage     = (Image)GFXLibrary.reports_checkbox_checked;
            this.houseCheck.UncheckedImage   = (Image)GFXLibrary.reports_checkbox_empty;
            this.houseCheck.Position         = new Point(x, y + (num5 * num));
            this.houseCheck.Checked          = reportFilters.house;
            this.houseCheck.CBLabel.Text     = SK.Text("ReportFilter_House", "House");
            this.houseCheck.CBLabel.Color    = ARGBColors.Black;
            this.houseCheck.CBLabel.Position = new Point(20, -1);
            this.houseCheck.CBLabel.Size     = new Size(170, 0x19);
            this.houseCheck.CBLabel.Font     = FontManager.GetFont("Arial", 10f, FontStyle.Regular);
            this.houseCheck.Data             = 0x11;
            this.houseCheck.setCheckChangedDelegate(new CustomSelfDrawPanel.CSDCheckBox.CSD_CheckChangedDelegate(this.checkToggled));
            this.backgroundImage.addControl(this.houseCheck);
            this.villageLostCheck.CheckedImage     = (Image)GFXLibrary.reports_checkbox_checked;
            this.villageLostCheck.UncheckedImage   = (Image)GFXLibrary.reports_checkbox_empty;
            this.villageLostCheck.Position         = new Point(num4, y + (9 * num));
            this.villageLostCheck.Checked          = ReportsPanel.Instance.ShowVillageLost;
            this.villageLostCheck.CBLabel.Text     = SK.Text("Reports_VillageLost", "Village Lost");
            this.villageLostCheck.CBLabel.Color    = ARGBColors.Black;
            this.villageLostCheck.CBLabel.Position = new Point(20, -1);
            this.villageLostCheck.CBLabel.Size     = new Size(170, 0x19);
            this.villageLostCheck.CBLabel.Font     = FontManager.GetFont("Arial", 10f, FontStyle.Regular);
            this.villageLostCheck.Data             = -4;
            this.villageLostCheck.Visible          = !flag;
            this.villageLostCheck.setCheckChangedDelegate(new CustomSelfDrawPanel.CSDCheckBox.CSD_CheckChangedDelegate(this.checkToggled));
            this.backgroundImage.addControl(this.villageLostCheck);
            CustomSelfDrawPanel.CSDButton control = new CustomSelfDrawPanel.CSDButton {
                ImageNorm  = (Image)GFXLibrary.mail2_button_blue_141wide_normal,
                ImageOver  = (Image)GFXLibrary.mail2_button_blue_141wide_over,
                ImageClick = (Image)GFXLibrary.mail2_button_blue_141wide_pushed,
                Position   = new Point(30, 270)
            };
            control.Text.Text      = SK.Text("ReportFilter_Select_All", "Select All");
            control.Text.Alignment = CustomSelfDrawPanel.CSD_Text_Alignment.CENTER_CENTER;
            control.Text.Font      = FontManager.GetFont("Arial", 9f, FontStyle.Bold);
            control.TextYOffset    = -3;
            control.Text.Color     = ARGBColors.Black;
            control.setClickDelegate(new CustomSelfDrawPanel.CSDControl.CSD_ClickDelegate(this.selectAllClicked), "ReportCapturePanel_select_all");
            control.Visible = !flag;
            this.backgroundImage.addControl(control);
            CustomSelfDrawPanel.CSDButton button2 = new CustomSelfDrawPanel.CSDButton {
                ImageNorm  = (Image)GFXLibrary.mail2_button_blue_141wide_normal,
                ImageOver  = (Image)GFXLibrary.mail2_button_blue_141wide_over,
                ImageClick = (Image)GFXLibrary.mail2_button_blue_141wide_pushed,
                Position   = new Point(0xc0, 270)
            };
            button2.Text.Text      = SK.Text("ReportFilter_Select_None", "Select None");
            button2.Text.Alignment = CustomSelfDrawPanel.CSD_Text_Alignment.CENTER_CENTER;
            button2.Text.Font      = FontManager.GetFont("Arial", 9f, FontStyle.Bold);
            button2.TextYOffset    = -3;
            button2.Text.Color     = ARGBColors.Black;
            button2.setClickDelegate(new CustomSelfDrawPanel.CSDControl.CSD_ClickDelegate(this.selectNoneClicked), "ReportCapturePanel_select_none");
            button2.Visible = !flag;
            this.backgroundImage.addControl(button2);
            this.readMessagesCheck.CheckedImage   = (Image)GFXLibrary.reports_checkbox_checked;
            this.readMessagesCheck.UncheckedImage = (Image)GFXLibrary.reports_checkbox_empty;
            if (Program.mySettings.LanguageIdent == "pl")
            {
                this.readMessagesCheck.Position = new Point(x - 20, 330);
            }
            else
            {
                this.readMessagesCheck.Position = new Point(x, 330);
            }
            this.readMessagesCheck.Checked       = ReportsPanel.Instance.ShowReadMessages;
            this.readMessagesCheck.CBLabel.Text  = SK.Text("ReportFilter_Show_Read_Messages", "Show Read Messages");
            this.readMessagesCheck.CBLabel.Color = ARGBColors.Black;
            if (Program.mySettings.LanguageIdent == "de")
            {
                this.readMessagesCheck.CBLabel.Position = new Point(10, -1);
            }
            else
            {
                this.readMessagesCheck.CBLabel.Position = new Point(20, -1);
            }
            this.readMessagesCheck.CBLabel.Size = new Size(310, 0x19);
            this.readMessagesCheck.CBLabel.Font = FontManager.GetFont("Arial", 10f, FontStyle.Regular);
            this.readMessagesCheck.Data         = -1;
            this.readMessagesCheck.setCheckChangedDelegate(new CustomSelfDrawPanel.CSDCheckBox.CSD_CheckChangedDelegate(this.checkToggled));
            this.readMessagesCheck.Visible = !flag;
            this.backgroundImage.addControl(this.readMessagesCheck);
            this.forwardedOnlyCheck.CheckedImage   = (Image)GFXLibrary.reports_checkbox_checked;
            this.forwardedOnlyCheck.UncheckedImage = (Image)GFXLibrary.reports_checkbox_empty;
            if (Program.mySettings.LanguageIdent == "pl")
            {
                this.forwardedOnlyCheck.Position = new Point(x - 20, 0x131);
            }
            else
            {
                this.forwardedOnlyCheck.Position = new Point(x, 0x131);
            }
            this.forwardedOnlyCheck.Checked          = ReportsPanel.Instance.ShowForwardedMessagesOnly;
            this.forwardedOnlyCheck.CBLabel.Text     = SK.Text("ReportFilter_Show_Forwarded_Only_Messages", "Show Forwarded Messages Only");
            this.forwardedOnlyCheck.CBLabel.Color    = ARGBColors.Black;
            this.forwardedOnlyCheck.CBLabel.Position = new Point(20, -1);
            this.forwardedOnlyCheck.CBLabel.Size     = new Size(310, 0x19);
            this.forwardedOnlyCheck.CBLabel.Font     = FontManager.GetFont("Arial", 10f, FontStyle.Regular);
            this.forwardedOnlyCheck.Data             = -3;
            this.forwardedOnlyCheck.setCheckChangedDelegate(new CustomSelfDrawPanel.CSDCheckBox.CSD_CheckChangedDelegate(this.checkToggled));
            this.forwardedOnlyCheck.Visible = !flag;
            this.backgroundImage.addControl(this.forwardedOnlyCheck);
            parent.Size = this.backgroundImage.Size;
            base.Invalidate();
            parent.Invalidate();
        }