示例#1
0
        public void Initialize(frmMain frmMainWindow, uscServerConnection uscParent) {

            this.m_frmMain = frmMainWindow;

            this.uscPlugins.Initialize(this.m_frmMain, uscParent);
            this.lsvLayerAccounts.SmallImageList = this.m_frmMain.iglIcons;
        }
示例#2
0
        public frmManageAccounts(PRoConApplication paProcon, frmMain frmMainWindow) {
            InitializeComponent();

            this.m_paProcon = paProcon;
            this.m_paProcon.AccountsList.AccountAdded += new AccountDictionary.AccountAlteredHandler(AccountsList_AccountAdded);
            this.m_paProcon.AccountsList.AccountRemoved += new AccountDictionary.AccountAlteredHandler(AccountsList_AccountRemoved);

            this.m_frmMainWindow = frmMainWindow;

            Rectangle recWindow = new Rectangle();
            recWindow.Location = new Point(0, 0);
            recWindow.Height = 540;
            recWindow.Width = 600;
            this.Bounds = recWindow;

            Rectangle recPanels = new Rectangle();
            recPanels.Location = new Point(0, 0);
            recPanels.Height = 500;
            recPanels.Width = 600;
            this.pnlChooseAccount.Bounds = this.pnlCreateAccount.Bounds = this.pnlAlterPrivileges.Bounds = this.pnlConfirmation.Bounds = this.pnlEditingUser.Bounds = recPanels;

            this.uscSetPrivileges.OnCancelPrivileges += new uscPrivilegesSelection.OnCancelPrivilegesDelegate(uscSetPrivileges_OnCancelPrivileges);
            this.uscSetPrivileges.OnUpdatePrivileges += new uscPrivilegesSelection.OnUpdatePrivilegesDelegate(uscSetPrivileges_OnUpdatePrivileges);

            this.picDeleteAccount.Image = this.m_frmMainWindow.iglIcons.Images["cross.png"];
            this.picCreateNewAccount.Image = this.m_frmMainWindow.iglIcons.Images["new.png"];
            this.picRemovePrivileges.Image = this.m_frmMainWindow.iglIcons.Images["key_delete.png"];
            this.picEditGlobalPrivileges.Image = this.m_frmMainWindow.iglIcons.Images["key.png"];
        }
示例#3
0
        public void Initialize(frmMain frmMainWindow, uscServerConnection uscParent) {
            this.m_uscParent = uscParent;
            this.m_frmMainWindow = frmMainWindow;

            this.tbcConsoles.ImageList = this.m_frmMainWindow.iglIcons;
            this.tabConsole.ImageKey = "application_xp_terminal.png";
            this.tabPunkbuster.ImageKey = "punkbuster.png";

        }
示例#4
0
        public void Initalize(frmMain frmMain, uscServerConnection uscConnectionPanel) {
            this._main = frmMain;

            this.picLayerServerStatus.Image = this._main.picLayerOffline.Image;

            this.pnlMainLayerServer.Dock = DockStyle.Fill;
            this.pnlStartPRoConLayer.Dock = DockStyle.Fill;
            this.pnlAccountPrivileges.Dock = DockStyle.Fill;

            this.lsvLayerAccounts.SmallImageList = this._main.iglIcons;
        }
示例#5
0
        public void Initialize(frmMain frmMainWindow, uscServerConnection uscConnectionPanel)
        {
            this.m_frmMain = frmMainWindow;

            this.SettingFail = frmMainWindow.picAjaxStyleFail.Image;
            this.SettingSuccess = frmMainWindow.picAjaxStyleSuccess.Image;
            this.SettingLoading = frmMainWindow.picAjaxStyleLoading.Image;

            this.btnAddMap.Image = frmMainWindow.iglIcons.Images["arrow-curve-000-left.png"];
            this.btnRemoveMap.Image = frmMainWindow.iglIcons.Images["arrow-curve-180-left.png"];
        }
示例#6
0
        public frmOptions(PRoConApplication praApplication, frmMain frmParent)
        {
            this.m_isLoadingForm = true;

            InitializeComponent();

            this.m_praApplication = praApplication;
            this.m_praApplication.CurrentLanguageChanged += new PRoConApplication.CurrentLanguageHandler(m_praApplication_CurrentLanguageChanged);

            this.m_praApplication.OptionsSettings.AutoApplyUpdatesChanged += new PRoCon.Core.Options.OptionsSettings.OptionsEnabledHandler(OptionsSettings_AutoApplyUpdatesChanged);
            this.m_praApplication.OptionsSettings.AutoCheckDownloadUpdatesChanged += new PRoCon.Core.Options.OptionsSettings.OptionsEnabledHandler(OptionsSettings_AutoCheckDownloadUpdatesChanged);
            this.m_praApplication.OptionsSettings.ChatLoggingChanged += new PRoCon.Core.Options.OptionsSettings.OptionsEnabledHandler(OptionsSettings_ChatLoggingChanged);
            this.m_praApplication.OptionsSettings.PluginsLoggingChanged += new OptionsSettings.OptionsEnabledHandler(OptionsSettings_PluginsLoggingChanged);
            this.m_praApplication.OptionsSettings.EventsLoggingChanged += new PRoCon.Core.Options.OptionsSettings.OptionsEnabledHandler(OptionsSettings_EventsLoggingChanged);
            this.m_praApplication.OptionsSettings.ConsoleLoggingChanged += new PRoCon.Core.Options.OptionsSettings.OptionsEnabledHandler(OptionsSettings_ConsoleLoggingChanged);

            this.m_praApplication.OptionsSettings.ShowTrayIconChanged += new PRoCon.Core.Options.OptionsSettings.OptionsEnabledHandler(OptionsSettings_ShowTrayIconChanged);
            this.m_praApplication.OptionsSettings.CloseToTrayChanged += new PRoCon.Core.Options.OptionsSettings.OptionsEnabledHandler(OptionsSettings_CloseToTrayChanged);
            this.m_praApplication.OptionsSettings.MinimizeToTrayChanged += new PRoCon.Core.Options.OptionsSettings.OptionsEnabledHandler(OptionsSettings_MinimizeToTrayChanged);

            this.m_praApplication.OptionsSettings.RunPluginsInTrustedSandboxChanged += new PRoCon.Core.Options.OptionsSettings.OptionsEnabledHandler(OptionsSettings_RunPluginsInTrustedSandboxChanged);
            this.m_praApplication.OptionsSettings.AllowAllODBCConnectionsChanged += new PRoCon.Core.Options.OptionsSettings.OptionsEnabledHandler(OptionsSettings_AllowAllODBCConnectionsChanged);
            this.m_praApplication.OptionsSettings.TrustedHostsWebsitesPorts.ItemAdded += new NotificationList<PRoCon.Core.Options.TrustedHostWebsitePort>.ItemModifiedHandler(TrustedHostsWebsitesPorts_ItemAdded);
            this.m_praApplication.OptionsSettings.TrustedHostsWebsitesPorts.ItemRemoved += new NotificationList<PRoCon.Core.Options.TrustedHostWebsitePort>.ItemModifiedHandler(TrustedHostsWebsitesPorts_ItemRemoved);

            this.m_praApplication.HttpServerOffline += new PRoCon.Core.HttpServer.HttpWebServer.StateChangeHandler(m_praApplication_HttpServerOffline);
            this.m_praApplication.HttpServerOnline += new PRoCon.Core.HttpServer.HttpWebServer.StateChangeHandler(m_praApplication_HttpServerOnline);

            this.m_praApplication.OptionsSettings.AdminMoveMessageChanged += new PRoCon.Core.Options.OptionsSettings.OptionsEnabledHandler(OptionsSettings_AdminMoveMessageChanged);
            this.m_praApplication.OptionsSettings.ChatDisplayAdminNameChanged += new PRoCon.Core.Options.OptionsSettings.OptionsEnabledHandler(OptionsSettings_ChatDisplayAdminNameChanged);

            this.m_praApplication.OptionsSettings.LayerHideLocalAccountsChanged += new OptionsSettings.OptionsEnabledHandler(OptionsSettings_LayerHideLocalAccountsChanged);
            this.m_praApplication.OptionsSettings.LayerHideLocalPluginsChanged += new OptionsSettings.OptionsEnabledHandler(OptionsSettings_LayerHideLocalPluginsChanged);

            this.m_praApplication.OptionsSettings.ShowRoundTimerConstantlyChanged += new PRoCon.Core.Options.OptionsSettings.OptionsEnabledHandler(OptionsSettings_ShowRoundTimerConstantlyChanged);

            //m_fntComboBoxFont = new Font("Calibri", 10);
            this.m_frmParent = frmParent;
            this.picHttpServerServerStatus.Image = this.m_frmParent.picLayerOffline.Image;

            cboBasicsLanguagePicker.DropDownStyle = ComboBoxStyle.DropDownList;
            cboBasicsLanguagePicker.DrawMode = DrawMode.OwnerDrawVariable;

            //this.LoadLocalizationFiles();

            this.btnPluginsRemoveTrustedHostDomain.ImageList = this.btnPluginsAddTrustedHostDomain.ImageList = this.m_frmParent.iglIcons;

            this.btnPluginsAddTrustedHostDomain.ImageKey = "add.png";
            this.btnPluginsRemoveTrustedHostDomain.ImageKey = "cross.png";

            this.cboBasicsShowWindow.SelectedIndex = frmOptions.INT_OPTIONS_PREFERENCES_SHOWWINDOW_TASKBARANDTRAY;
            this.cboPluginsSandboxOptions.SelectedIndex = 0;
        }
示例#7
0
        public uscAccountsPanel() {
            InitializeComponent();

            //this.m_uscParentPanel = null;
            this.m_frmMain = null;
            this.m_clocLanguage = null;

            //this.m_spPrivileges = new CPrivileges();
            //this.m_spPrivileges.PrivilegesFlags = CPrivileges.FullPrivilegesFlags;

            this.uscPrivileges.OnUpdatePrivileges += new uscPrivilegesSelection.OnUpdatePrivilegesDelegate(uscPrivileges_OnUpdatePrivileges);
            this.uscPrivileges.OnCancelPrivileges += new uscPrivilegesSelection.OnCancelPrivilegesDelegate(uscPrivileges_OnCancelPrivileges);
        }
示例#8
0
        private const int INT_MAX_TEAMS = 5; //0 = neutral, 1, 2, 3, 4..
        
        public uscPlayerListPanel() {
            InitializeComponent();

            this.m_clocLanguage = null;
            this.m_lvwColumnSorter = new PlayerListColumnSorter();
            this.m_frmMain = null;
            this.m_uscConnectionPanel = null;

            this.m_spPrivileges = new CPrivileges();
            this.m_spPrivileges.PrivilegesFlags = CPrivileges.FullPrivilegesFlags;

            this.spltListAdditionalInfo.Panel2Collapsed = true;
            this.spltTwoSplit.Panel2Collapsed = true;
            this.spltFourSplit.Panel2Collapsed = true;
        }
示例#9
0
        public void Initalize(frmMain frmMain, uscServerConnection uscConnectionPanel)
        {
            this.m_frmMain = frmMain;
            this.m_uscConnectionPanel = uscConnectionPanel;

            this.lsvEvents.SmallImageList = this.m_frmMain.iglIcons;

            this.btnRemoveCapture.ImageList = this.m_frmMain.iglIcons;
            this.btnRemoveCapture.ImageKey = "cross.png";

            this.btnAddCapture.ImageList = this.m_frmMain.iglIcons;
            this.btnAddCapture.ImageKey = "add.png";

            this.picOpenCloseCaptures.Image = this.m_frmMain.iglIcons.Images["arrow_right.png"];
        }
示例#10
0
 public void Initialize(frmMain frmMainWindow) {
     this.m_frmMain = frmMainWindow;
 }
示例#11
0
        public void Initalize(frmMain frmMain, uscServerConnection uscConnectionPanel) {
            this.m_frmMain = frmMain;
            this.m_uscConnectionPanel = uscConnectionPanel;
            //this.m_uscParentPanel = uscParentPanel;

            this.picLayerForwardedTestStatus.Image = this.m_frmMain.picPortCheckerUnknown.Image; //  .iglPRoConLayerIcons.Images[uscServerConnection.INT_ICON_LAYERSERVER_PORTCHECK_UNKNOWN];
            this.picLayerServerStatus.Image = this.m_frmMain.picLayerOffline.Image; // .iglPRoConLayerIcons.Images[uscServerConnection.INT_ICON_LAYERSERVER_OFFLINE];

            this.pnlMainLayerServer.Dock = DockStyle.Fill;
            this.pnlStartPRoConLayer.Dock = DockStyle.Fill;
            this.pnlAccountPrivileges.Dock = DockStyle.Fill;

            this.lsvLayerAccounts.SmallImageList = this.m_frmMain.iglIcons;
        }
示例#12
0
        public void Initialize(frmMain frmMainWindow, uscServerConnection uscConnectionPanel) {
            this.m_frmMain = frmMainWindow;
            this.m_uscConnectionPanel = uscConnectionPanel;

            this.kbpPunkbusterPunishPanel.Punkbuster = true;
            this.kbpPunkbusterPunishPanel.PunishPlayer += new uscPlayerPunishPanel.PunishPlayerDelegate(kbpPunkbusterPunishPanel_PunishPlayer);
            this.kbpPunkbusterPunishPanel.Initialize(uscConnectionPanel);
            this.kbpBfbcPunishPanel.PunishPlayer += new uscPlayerPunishPanel.PunishPlayerDelegate(kbpBfbcPunishPanel_PunishPlayer);
            this.kbpBfbcPunishPanel.Initialize(uscConnectionPanel);
            
            this.lsvTeamOnePlayers.SmallImageList = this.m_frmMain.iglFlags;
            this.lsvTeamTwoPlayers.SmallImageList = this.m_frmMain.iglFlags;
            this.lsvTeamThreePlayers.SmallImageList = this.m_frmMain.iglFlags;
            this.lsvTeamFourPlayers.SmallImageList = this.m_frmMain.iglFlags;
            this.lsvTeamOnePlayers.ListViewItemSorter = this.m_lvwColumnSorter;
            this.lsvTeamTwoPlayers.ListViewItemSorter = this.m_lvwColumnSorter;
            this.lsvTeamThreePlayers.ListViewItemSorter = this.m_lvwColumnSorter;
            this.lsvTeamFourPlayers.ListViewItemSorter = this.m_lvwColumnSorter;

            this.btnCloseAdditionalInfo.ImageList = this.m_frmMain.iglIcons;
            this.btnCloseAdditionalInfo.ImageKey = "cross.png";

            this.btnSplitTeams.ImageList = this.m_frmMain.iglIcons;
            this.btnSplitTeams.ImageKey = "application_tile_horizontal.png";

            this.cboEndRound.SelectedIndex = 0;
        }
示例#13
0
        public frmOptions(PRoConApplication praApplication, frmMain frmParent)
        {
            this.m_isLoadingForm = true;

            InitializeComponent();

            this.m_praApplication = praApplication;
            this.m_praApplication.CurrentLanguageChanged += new PRoConApplication.CurrentLanguageHandler(m_praApplication_CurrentLanguageChanged);

            this.m_praApplication.OptionsSettings.AutoApplyUpdatesChanged               += new PRoCon.Core.Options.OptionsSettings.OptionsEnabledHandler(OptionsSettings_AutoApplyUpdatesChanged);
            this.m_praApplication.OptionsSettings.AutoCheckDownloadUpdatesChanged       += new PRoCon.Core.Options.OptionsSettings.OptionsEnabledHandler(OptionsSettings_AutoCheckDownloadUpdatesChanged);
            this.m_praApplication.OptionsSettings.AutoCheckGameConfigsForUpdatesChanged += new PRoCon.Core.Options.OptionsSettings.OptionsEnabledHandler(OptionsSettings_AutoCheckGameConfigsForUpdatesChanged);
            this.m_praApplication.OptionsSettings.ChatLoggingChanged    += new PRoCon.Core.Options.OptionsSettings.OptionsEnabledHandler(OptionsSettings_ChatLoggingChanged);
            this.m_praApplication.OptionsSettings.PluginsLoggingChanged += new OptionsSettings.OptionsEnabledHandler(OptionsSettings_PluginsLoggingChanged);
            this.m_praApplication.OptionsSettings.EventsLoggingChanged  += new PRoCon.Core.Options.OptionsSettings.OptionsEnabledHandler(OptionsSettings_EventsLoggingChanged);
            this.m_praApplication.OptionsSettings.ConsoleLoggingChanged += new PRoCon.Core.Options.OptionsSettings.OptionsEnabledHandler(OptionsSettings_ConsoleLoggingChanged);

            this.m_praApplication.OptionsSettings.ShowTrayIconChanged   += new PRoCon.Core.Options.OptionsSettings.OptionsEnabledHandler(OptionsSettings_ShowTrayIconChanged);
            this.m_praApplication.OptionsSettings.CloseToTrayChanged    += new PRoCon.Core.Options.OptionsSettings.OptionsEnabledHandler(OptionsSettings_CloseToTrayChanged);
            this.m_praApplication.OptionsSettings.MinimizeToTrayChanged += new PRoCon.Core.Options.OptionsSettings.OptionsEnabledHandler(OptionsSettings_MinimizeToTrayChanged);

            this.m_praApplication.OptionsSettings.RunPluginsInTrustedSandboxChanged   += new PRoCon.Core.Options.OptionsSettings.OptionsEnabledHandler(OptionsSettings_RunPluginsInTrustedSandboxChanged);
            this.m_praApplication.OptionsSettings.AllowAllODBCConnectionsChanged      += new PRoCon.Core.Options.OptionsSettings.OptionsEnabledHandler(OptionsSettings_AllowAllODBCConnectionsChanged);
            this.m_praApplication.OptionsSettings.AllowAllSmtpConnectionsChanged      += new PRoCon.Core.Options.OptionsSettings.OptionsEnabledHandler(OptionsSettings_AllowAllSmtpConnectionsChanged);
            this.m_praApplication.OptionsSettings.TrustedHostsWebsitesPorts.ItemAdded += new NotificationList <PRoCon.Core.Options.TrustedHostWebsitePort> .ItemModifiedHandler(TrustedHostsWebsitesPorts_ItemAdded);

            this.m_praApplication.OptionsSettings.TrustedHostsWebsitesPorts.ItemRemoved += new NotificationList <PRoCon.Core.Options.TrustedHostWebsitePort> .ItemModifiedHandler(TrustedHostsWebsitesPorts_ItemRemoved);

            this.m_praApplication.HttpServerOffline += new PRoCon.Core.HttpServer.HttpWebServer.StateChangeHandler(m_praApplication_HttpServerOffline);
            this.m_praApplication.HttpServerOnline  += new PRoCon.Core.HttpServer.HttpWebServer.StateChangeHandler(m_praApplication_HttpServerOnline);

            this.m_praApplication.OptionsSettings.AdminMoveMessageChanged     += new PRoCon.Core.Options.OptionsSettings.OptionsEnabledHandler(OptionsSettings_AdminMoveMessageChanged);
            this.m_praApplication.OptionsSettings.ChatDisplayAdminNameChanged += new PRoCon.Core.Options.OptionsSettings.OptionsEnabledHandler(OptionsSettings_ChatDisplayAdminNameChanged);

            this.m_praApplication.OptionsSettings.LayerHideLocalAccountsChanged += new OptionsSettings.OptionsEnabledHandler(OptionsSettings_LayerHideLocalAccountsChanged);
            this.m_praApplication.OptionsSettings.LayerHideLocalPluginsChanged  += new OptionsSettings.OptionsEnabledHandler(OptionsSettings_LayerHideLocalPluginsChanged);

            this.m_praApplication.OptionsSettings.ShowRoundTimerConstantlyChanged   += new PRoCon.Core.Options.OptionsSettings.OptionsEnabledHandler(OptionsSettings_ShowRoundTimerConstantlyChanged);
            this.m_praApplication.OptionsSettings.ShowCfmMsgRoundRestartNextChanged += new PRoCon.Core.Options.OptionsSettings.OptionsEnabledHandler(OptionsSettings_ShowCfmMsgRoundRestartNextChanged);

            this.m_praApplication.OptionsSettings.ShowDICESpecialOptionsChanged += new PRoCon.Core.Options.OptionsSettings.OptionsEnabledHandler(OptionsSettings_ShowDICESpecialOptionsChanged);

            this.m_praApplication.OptionsSettings.StatsLinkNameUrl.ItemAdded += new NotificationList <PRoCon.Core.Options.StatsLinkNameUrl> .ItemModifiedHandler(StatsLinkNameUrl_ItemAdded);

            this.m_praApplication.OptionsSettings.StatsLinkNameUrl.ItemRemoved += new NotificationList <PRoCon.Core.Options.StatsLinkNameUrl> .ItemModifiedHandler(StatsLinkNameUrl_ItemRemoved);


            //m_fntComboBoxFont = new Font("Calibri", 10);
            this.m_frmParent = frmParent;
            this.picHttpServerServerStatus.Image = this.m_frmParent.picLayerOffline.Image;

            cboBasicsLanguagePicker.DropDownStyle = ComboBoxStyle.DropDownList;
            cboBasicsLanguagePicker.DrawMode      = DrawMode.OwnerDrawVariable;

            //this.LoadLocalizationFiles();

            this.btnPluginsRemoveTrustedHostDomain.ImageList = this.btnPluginsAddTrustedHostDomain.ImageList = this.m_frmParent.iglIcons;

            this.btnPluginsAddTrustedHostDomain.ImageKey    = "add.png";
            this.btnPluginsRemoveTrustedHostDomain.ImageKey = "cross.png";

            this.cboBasicsShowWindow.SelectedIndex      = frmOptions.INT_OPTIONS_PREFERENCES_SHOWWINDOW_TASKBARANDTRAY;
            this.cboPluginsSandboxOptions.SelectedIndex = 0;

            // StatsLinksList
            this.btnAddStatsLink.ImageList   = this.btnRemoveStatsLink.ImageList = this.m_frmParent.iglIcons;
            this.btnAddStatsLink.ImageKey    = "add.png";
            this.btnRemoveStatsLink.ImageKey = "cross.png";
        }
示例#14
0
        public uscServerConnection(PRoConApplication paProcon, PRoConClient prcConnection, frmMain frmParent, frmManageAccounts frmAccounts) {
        //public uscServerConnection(PRoConApplication paProcon, ProConClient prcConnection, frmMain frmParent, frmManageAccounts frmAccounts, uscServerPlayerTreeview uscServerPlayerTree, string strHost, UInt16 iu16Port, string strUsername, string strPassword) {

            InitializeComponent();

            this.m_praApplication = paProcon;
            this.m_prcConnection = prcConnection;
            this.m_prcConnection.GameTypeDiscovered += new PRoConClient.EmptyParamterHandler(m_prcConnection_GameTypeDiscovered);

            this.SetStyle(ControlStyles.UserPaint, true);
            this.SetStyle(ControlStyles.AllPaintingInWmPaint, true);
            this.SetStyle(ControlStyles.DoubleBuffer, true);

            this.m_cpPrivileges = new CPrivileges(CPrivileges.FullPrivilegesFlags);

            this.m_frmParent = frmParent;
            this.m_frmAccounts = frmAccounts;

            this.tbcClientTabs.ImageList = this.m_frmParent.iglIcons;

            this.uscLogin.BackgroundHostPort = prcConnection.HostNamePort;

            if (prcConnection.State != ConnectionState.Connected) {
                this.uscLogin.Dock = DockStyle.Fill;
                this.uscLogin.Show();
            }
            else {
                this.uscLogin.Hide();
            }

            this.uscLists.OnTabChange += new OnTabChangeDelegate(uscLists_OnTabChange);

            this.tabPlayerList.ImageKey = "mouse.png";
            this.tabLists.ImageKey = "table.png";
            this.tabChat.ImageKey = "comments.png";
            this.tabEvents.ImageKey = "flag_blue.png";
            this.tabMapView.ImageKey = "map-pin.png";
            this.tabServerSettings.ImageKey = "server_edit.png";
            this.tabPlugins.ImageKey = "plugin.png";
            this.tabAccounts.ImageKey = "vcard.png";
            this.tabConsole.ImageKey = "application_xp_terminal.png";

            #region Map Controls

            this.SettingLoading = this.m_frmParent.picAjaxStyleLoading.Image;
            this.SettingSuccess = this.m_frmParent.picAjaxStyleSuccess.Image;
            this.SettingFail = this.m_frmParent.picAjaxStyleFail.Image;

            this.btnRestartRound.Image = this.m_frmParent.iglIcons.Images["arrow-retweet.png"];
            this.btnNextRound.Image = this.m_frmParent.iglIcons.Images["arrow-step-over.png"];

            this.AsyncSettingControls.Add("admin.runNextRound", new AsyncStyleSetting(this.picNextRound, null, new Control[] { this.btnNextRound }, true));
            this.AsyncSettingControls.Add("admin.restartRound", new AsyncStyleSetting(this.picRestartRound, null, new Control[] { this.btnRestartRound }, true));

            #endregion

            this.uscPlugins.GetPluginDetails += new uscPluginPanel.GetPluginDetailsDelegate(uscPlugins_GetPluginDetails);
            this.uscPlugins.SetPluginVariable += new uscPluginPanel.SetPluginVariableDelegate(uscPlugins_SetPluginVariable);
            this.uscPlugins.PluginEnabled += new uscPluginPanel.PluginEnabledDelegate(uscPlugins_PluginEnabled);
            this.uscPlugins.PluginLoaded += new uscPluginPanel.PluginEventDelegate(uscPlugins_PluginLoaded);
            this.uscPlugins.PluginVariablesAltered += new uscPluginPanel.PluginEventDelegate(uscPlugins_PluginVariablesAltered);
            this.uscPlugins.ReloadPlugins += new uscPluginPanel.EventDelegate(uscPlugins_ReloadPlugins);
            this.uscPlugins.OnTabChange += new OnTabChangeDelegate(uscPlugins_OnTabChange);

            this.uscAccounts.ManageAccountsRequest += new uscAccountsPanel.ManageAccountsRequestDelegate(uscAccounts_ManageAccountsRequest);

            this.uscServerConsole.SendCommand += new uscConsolePanel.SendCommandDelegate(uscServerConsole_SendCommand);
            this.uscServerConsole.SendListCommand += new uscConsolePanel.SendListCommandDelegate(uscServerConsole_SendListCommand);
            this.uscServerConsole.OnTabChange += new OnTabChangeDelegate(uscServerConsole_OnTabChange);

            this.m_tabParentLayerControl = new TabPage("Parent Layer Control");
            this.m_tabParentLayerControl.Name = "tabLayerControl";
            this.m_tabParentLayerControl.Padding = new Padding(8);
            this.m_tabParentLayerControl.UseVisualStyleBackColor = true;

            this.m_uscParentLayerControl = new uscParentLayerControl();
            this.m_uscParentLayerControl.Dock = DockStyle.Fill;
            this.m_uscParentLayerControl.BackColor = Color.Transparent;
            //this.m_uscParentLayerControl.SendCommand += new uscParentLayerControl.SendCommandDelegate(m_uscParentLayerControl_SendCommand);
            this.m_uscParentLayerControl.Initialize(this.m_frmParent, this);
            this.m_tabParentLayerControl.Controls.Add(m_uscParentLayerControl);
            this.m_uscParentLayerControl.OnTabChange += new OnTabChangeDelegate(m_uscParentLayerControl_OnTabChange);

            this.uscPlugins.Initialize(this.m_frmParent, this);
            this.uscPlugins.SetConnection(this.m_prcConnection);
            this.uscLogin.Initalize(this.m_frmParent, this);
            this.uscLogin.SetConnection(this.m_prcConnection);
            this.uscLogin.SetLocalization(this.m_prcConnection.Language);

            this.uscMap.SetConnection(this.m_prcConnection);
            this.uscEvents.SetConnection(this.m_prcConnection);
            this.uscLists.SetConnection(this.m_prcConnection);
            this.uscSettings.SetConnection(this.m_prcConnection);
            this.uscServerConsole.SetConnection(this.m_prcConnection);
            this.uscChat.SetConnection(this.m_prcConnection);
            this.uscPlayers.SetConnection(this.m_prcConnection);
            this.m_uscParentLayerControl.SetConnection(this.m_prcConnection);

            this.uscAccounts.SetConnection(this.m_praApplication, this.m_prcConnection);
        }
 public void Initialize(frmMain frmMainWindow) {
     this.btnTextChatModerationRemoveSoldier.ImageList = frmMainWindow.iglIcons;
     this.btnTextChatModerationRemoveSoldier.ImageKey = "cross.png";
 }
示例#16
0
        public void Initialize(frmMain frmMainWindow, uscServerConnection uscConnectionPanel) {
            this.m_frmMain = frmMainWindow;

            this.SettingFail = frmMainWindow.picAjaxStyleFail.Image;
            this.SettingSuccess = frmMainWindow.picAjaxStyleSuccess.Image;
            this.SettingLoading = frmMainWindow.picAjaxStyleLoading.Image;

            this.btnAddMap.Image = frmMainWindow.iglIcons.Images["arrow-curve-000-left.png"];
            this.btnRemoveMap.Image = frmMainWindow.iglIcons.Images["arrow-curve-180-left.png"];

            this.btnMaplistRefresh.ImageList = this.m_frmMain.iglIcons;
            this.btnMaplistRefresh.ImageKey = "arrow_refresh.png";

            this.btnMaplistClear.ImageList = this.m_frmMain.iglIcons;
            this.btnMaplistClear.ImageKey = "cross.png";
        }
示例#17
0
        public uscPluginPanel()
        {
            InitializeComponent();

            this.m_frmMain = null;
            this.m_uscParent = null;

            if (this.webDescription.Document == null) {
                this.webDescription.Navigate("about:blank");
                this.webDescription.Document.Window.Name = "hi";
            }
            this.webDescription.Navigating += new WebBrowserNavigatingEventHandler(webDescription_Navigating);

            this.m_asmBuilder = Thread.GetDomain().DefineDynamicAssembly(new AssemblyName("PRoConPluginEnumAssembly"), AssemblyBuilderAccess.Run);
            this.m_modBuilder = this.m_asmBuilder.DefineDynamicModule("PRoConPluginEnumModule");
            this.m_dicGeneratedEnums = new Dictionary<string, Enum>();

            this.m_cscPluginVariables = new CustomClass();

            this.m_blLocalPlugins = true;

            this.lsvLoadedPlugins.CreateGraphics();
        }
示例#18
0
        public void Initalize(frmMain frmMain, uscServerConnection uscConnectionPanel) {
            this.m_uscConnectionPanel = uscConnectionPanel;

            this.picConnecting.Image = frmMain.picAjaxStyleLoading.Image;
        }
示例#19
0
        public void Initalize(frmMain frmMain)
        {
            this.m_frmMain = frmMain;

            this.tsbPointer.Image = this.m_frmMain.iglIcons.Images["cursor.png"];
            this.tsbCalibration.Image = this.m_frmMain.iglIcons.Images["shape_square_edit.png"];
            this.btnCounterClockwise.Image = this.m_frmMain.iglIcons.Images["shape_rotate_anticlockwise.png"];
            this.btnClockwise.Image = this.m_frmMain.iglIcons.Images["shape_rotate_clockwise.png"];

            this.tsbMeasuringTool.Image = this.m_frmMain.iglIcons.Images["layer-shape-line.png"];

            this.tsbTeamColours.Image = this.m_frmMain.iglIcons.Images["block.png"];

            this.tsbMapZonesTools.Image = this.m_frmMain.iglIcons.Images["layers-ungroup.png"];

            this.btnAddTag.Image = this.m_frmMain.iglIcons.Images["add.png"];
        }
示例#20
0
        public void Initialize(frmMain frmMainWindow, uscServerConnection uscConnectionPanel) {
            this.m_frmMain = frmMainWindow;
            this.m_uscConnectionPanel = uscConnectionPanel;

            this.uscMaplist1.Initialize(frmMainWindow, uscConnectionPanel);

            this.tbcLists.ImageList = this.m_frmMain.iglIcons;

            this.tabBanlist.ImageKey = "mouse_ban.png";
            this.tabMaplist.ImageKey = "world.png";
            this.tabReservedSlots.ImageKey = "user.png";
            this.tabSpectatorSlots.ImageKey = "user.png";

            this.btnBanlistRefresh.ImageList = this.m_frmMain.iglIcons;
            this.btnBanlistRefresh.ImageKey = "arrow_refresh.png";

            this.btnReservedRemoveSoldier.ImageList = this.m_frmMain.iglIcons;
            this.btnReservedRemoveSoldier.ImageKey = "cross.png";

            this.btnReservedSlotsListRefresh.ImageList = this.m_frmMain.iglIcons;
            this.btnReservedSlotsListRefresh.ImageKey = "arrow_refresh.png";

            this.btnSpectatorRemoveSoldier.ImageList = this.m_frmMain.iglIcons;
            this.btnSpectatorRemoveSoldier.ImageKey = "cross.png";

            this.btnSpectatorSlotsListRefresh.ImageList = this.m_frmMain.iglIcons;
            this.btnSpectatorSlotsListRefresh.ImageKey = "arrow_refresh.png";

            this.picCloseOpenManualBans.Image = this.m_frmMain.iglIcons.Images["arrow_down.png"];

            this.picBanlistIPError.Image = this.picBanlistGUIDError.Image = this.m_frmMain.iglIcons.Images["cross.png"];
            //this.picBanlistManualBanOkay.Image = this.m_frmMain.iglIcons.Images["tick.png"];

            this.copyToolStripMenuItem.Image = this.m_frmMain.iglIcons.Images["page_copy.png"];

            this.uscTextChatModerationListcs1.Initialize(frmMainWindow);
        }
示例#21
0
        public void Initialize(frmMain frmMainWindow, uscServerConnection uscParent)
        {
            this.m_frmMain = frmMainWindow;
            this.m_uscParent = uscParent;

            this.tbcPluginDetails.ImageList = this.m_frmMain.iglIcons;
            this.lsvLoadedPlugins.SmallImageList = this.m_frmMain.iglIcons;

            this.tabPluginDetails.ImageKey = "information.png";
            this.tabPluginSettings.ImageKey = "plugin_edit.png";
        }