コード例 #1
0
 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);
 }
コード例 #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();
            }
        }
コード例 #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;
                }
            }
        }
コード例 #4
0
 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);
 }
コード例 #5
0
 public GenericReportPopup(GenericReportPanelBasic contentPanel)
 {
     this.dockableControl = new DockableControl(this);
     this.InitializeComponent(contentPanel);
 }
コード例 #6
0
 public GenericReportPopup(GenericReportPanelBasic contentPanel)
 {
     this.dockableControl = new DockableControl(this);
     this.InitializeComponent(contentPanel);
 }