private void InitializeComponent(GenericReportPanelBasic contentPanel)
 {
     if (contentPanel == null)
     {
         this.customPanel = new GenericReportPanelBasic();
     }
     else
     {
         this.customPanel = contentPanel;
     }
     base.Size = this.customPanel.Size;
     base.SuspendLayout();
     this.customPanel.Anchor         = AnchorStyles.Right | AnchorStyles.Left | AnchorStyles.Bottom | AnchorStyles.Top;
     this.customPanel.ClickThru      = false;
     this.customPanel.Location       = new Point(0, 2);
     this.customPanel.Name           = "customPanel";
     this.customPanel.PanelActive    = true;
     this.customPanel.StoredGraphics = null;
     this.customPanel.TabIndex       = 0x63;
     base.AutoScaleMode    = AutoScaleMode.None;
     this.BackColor        = ARGBColors.Transparent;
     base.BorderStyle      = BorderStyle.None;
     base.Name             = "ReligiousReportPanel";
     this.customPanel.Size = base.Size;
     base.Controls.Add(this.customPanel);
     base.ResumeLayout(false);
 }
Ejemplo n.º 2
0
        private void btnRemoveFromFavourites_Click(object sender, EventArgs e)
        {
            string userName = this.getSelectedName();

            if (userName != "")
            {
                this.btnAddToFavourites.Enabled      = this.btnRemove.Enabled = this.btnAdd.Enabled = this.listBoxFavourites.SelectedIndex == -1;
                this.btnRemoveFromFavourites.Enabled = false;
                GameEngine.Instance.playInterfaceSound("MailUserPopup_add_to_favourites");
                RemoteServices.Instance.RemoveUserFromFavourites(userName);
                this.listBoxFavourites.Items.Remove(userName);
                GenericReportPanelBasic.ForceHistoryRefresh();
            }
        }
Ejemplo n.º 3
0
        private void btnAddToFavourites_Click(object sender, EventArgs e)
        {
            string str = this.getSelectedName();

            if ((str != "") && !this.listBoxFavourites.Items.Contains(str))
            {
                GameEngine.Instance.playInterfaceSound("MailUserPopup_add_to_favourites");
                if (!this.listBoxFavourites.Items.Contains(str))
                {
                    this.listBoxFavourites.Items.Add(str);
                    RemoteServices.Instance.AddUserToFavourites(str);
                    GenericReportPanelBasic.ForceHistoryRefresh();
                    this.btnAddToFavourites.Enabled      = false;
                    this.btnRemoveFromFavourites.Enabled = true;
                }
            }
        }
 private void InitializeComponent(GenericReportPanelBasic contentPanel)
 {
     if (contentPanel == null)
     {
         this.customPanel = new GenericReportPanelBasic();
     }
     else
     {
         this.customPanel = contentPanel;
     }
     base.Size = this.customPanel.Size;
     base.SuspendLayout();
     this.customPanel.Anchor = AnchorStyles.Right | AnchorStyles.Left | AnchorStyles.Bottom | AnchorStyles.Top;
     this.customPanel.ClickThru = false;
     this.customPanel.Location = new Point(0, 2);
     this.customPanel.Name = "customPanel";
     this.customPanel.PanelActive = true;
     this.customPanel.StoredGraphics = null;
     this.customPanel.TabIndex = 0x63;
     base.AutoScaleMode = AutoScaleMode.None;
     this.BackColor = ARGBColors.Transparent;
     base.BorderStyle = BorderStyle.None;
     base.Name = "ReligiousReportPanel";
     this.customPanel.Size = base.Size;
     base.Controls.Add(this.customPanel);
     base.ResumeLayout(false);
 }
 public GenericReportPopup(GenericReportPanelBasic contentPanel)
 {
     this.dockableControl = new DockableControl(this);
     this.InitializeComponent(contentPanel);
 }
 public GenericReportPopup(GenericReportPanelBasic contentPanel)
 {
     this.dockableControl = new DockableControl(this);
     this.InitializeComponent(contentPanel);
 }