private void btnx_Start_Click(object sender, EventArgs e) { if (!m_bStartClient) { try { m_strServerAddr = this.tbIP.Text; m_iPort = System.Convert.ToInt32(this.tbPort.Text); } catch (System.Exception ex) { m_iPort = 0; m_strServerAddr = null; } if (m_iPort == 0 || m_strServerAddr == null) { return; } try { m_client = new TcpClient(m_strServerAddr, m_iPort); m_bStartClient = true; m_ReveiveThread = new Thread(new ThreadStart(ReveiveThread)); m_ReveiveThread.IsBackground = true; m_ReveiveThread.Start(); m_ParseThread = new Thread(new ThreadStart(ParseThread)); m_ParseThread.IsBackground = true; m_ParseThread.Start(); this.btnx_Start.Text = LocalizationRecourceManager.GetString(GFCommon.g_strSectionName, "btnxStop"); pb_Connect.Image = global::AutoSports.OVRGFPlugin.Properties.Resources.Connected; this.tbIP.Enabled = false; this.tbPort.Enabled = false; } catch (SocketException ex) { m_bStartClient = false; this.btnx_Start.Text = LocalizationRecourceManager.GetString(GFCommon.g_strSectionName, "btnxStart"); pb_Connect.Image = global::AutoSports.OVRGFPlugin.Properties.Resources.DisConnected; this.tbIP.Enabled = true; this.tbPort.Enabled = true; } } else { m_bStartClient = false; m_client.Close(); this.btnx_Start.Text = LocalizationRecourceManager.GetString(GFCommon.g_strSectionName, "btnxStart"); pb_Connect.Image = global::AutoSports.OVRGFPlugin.Properties.Resources.DisConnected; this.tbIP.Enabled = true; this.tbPort.Enabled = true; } }
public void DelPhaseCompetitors(Int32 iPhaseID, Int32 iRegisterID) { if (sqlConnection.State == System.Data.ConnectionState.Closed) { sqlConnection.Open(); } try { #region DML Command Setup for Get AvailbleMember SqlCommand cmd = new SqlCommand("proc_DelPhaseCompetitors", sqlConnection); cmd.CommandType = CommandType.StoredProcedure; SqlParameter cmdParameter1 = new SqlParameter("@EventID", SqlDbType.Int, 4, ParameterDirection.Input, false, 0, 0, "@EventID", DataRowVersion.Default, m_iEventID); SqlParameter cmdParameter2 = new SqlParameter("@PhaseID", SqlDbType.Int, 4, ParameterDirection.Input, false, 0, 0, "@PhaseID", DataRowVersion.Default, m_iPhaseID); SqlParameter cmdParameter3 = new SqlParameter("@NodeType", SqlDbType.Int, 4, ParameterDirection.Input, false, 0, 0, "@NodeType", DataRowVersion.Default, m_iNodeType); SqlParameter cmdParameter4 = new SqlParameter("@RegisterID", SqlDbType.Int, 4, ParameterDirection.Input, false, 0, 0, "@RegisterID", DataRowVersion.Default, iRegisterID); SqlParameter cmdParameter5 = new SqlParameter("@Result", SqlDbType.Int, 4, ParameterDirection.Output, false, 0, 0, "@Result", DataRowVersion.Default, DBNull.Value); cmd.Parameters.Add(cmdParameter1); cmd.Parameters.Add(cmdParameter2); cmd.Parameters.Add(cmdParameter3); cmd.Parameters.Add(cmdParameter4); cmd.Parameters.Add(cmdParameter5); cmd.UpdatedRowSource = UpdateRowSource.OutputParameters; #endregion cmd.ExecuteNonQuery(); Int32 nRetValue = (Int32)cmd.Parameters["@Result"].Value; string strPromotion; switch (nRetValue) { case -1: strPromotion = LocalizationRecourceManager.GetString(m_strSectionName, "MsgDelPhaseCompetitorsFailed"); DevComponents.DotNetBar.MessageBoxEx.Show(strPromotion); break; default: break; } } catch (System.Exception e) { DevComponents.DotNetBar.MessageBoxEx.Show(e.Message); } }
private void RemoveMember(int nRegisterID, int nMemberID) { if (sqlConnection.State == System.Data.ConnectionState.Closed) { sqlConnection.Open(); } try { #region DML Command Setup for RemoveMember SqlCommand cmd = new SqlCommand("proc_RemoveMemberRegister", sqlConnection); cmd.CommandType = CommandType.StoredProcedure; SqlParameter cmdParameter1 = new SqlParameter( "@RegisterID", SqlDbType.Int, 4, ParameterDirection.Input, false, 0, 0, "@RegisterID", DataRowVersion.Current, nRegisterID); SqlParameter cmdParameter2 = new SqlParameter( "@MemberRegisterID", SqlDbType.Int, 4, ParameterDirection.Input, false, 0, 0, "@MemberRegisterID", DataRowVersion.Default, nMemberID); SqlParameter cmdParameter3 = new SqlParameter( "@Result", SqlDbType.Int, 4, ParameterDirection.Output, false, 0, 0, "@Result", DataRowVersion.Default, DBNull.Value); cmd.Parameters.Add(cmdParameter1); cmd.Parameters.Add(cmdParameter2); cmd.Parameters.Add(cmdParameter3); cmd.UpdatedRowSource = UpdateRowSource.OutputParameters; #endregion cmd.ExecuteNonQuery(); int nRetValue = (int)cmd.Parameters["@Result"].Value; string strPromotion; switch (nRetValue) { case 0: case -1: case -2: strPromotion = LocalizationRecourceManager.GetString(this.Name, "FailedMsgBox"); DevComponents.DotNetBar.MessageBoxEx.Show(strPromotion); break; default: m_bModified = true; break; } } catch (System.Exception e) { DevComponents.DotNetBar.MessageBoxEx.Show(e.Message); } }
private void Localization() { this.Text = LocalizationRecourceManager.GetString(m_strSectionName, "frmOVRSPMatchJudgeConfig"); this.lbJudgeName.Text = LocalizationRecourceManager.GetString(m_strSectionName, "lbJudgeName"); this.lbJudgeFunction.Text = LocalizationRecourceManager.GetString(m_strSectionName, "lbJudgeFunction"); this.gvcMatchJudgeOrder = LocalizationRecourceManager.GetString(m_strSectionName, "gvcMatchJudgeOrder"); this.gvcMatchJudgeName = LocalizationRecourceManager.GetString(m_strSectionName, "gvcMatchJudgeName"); this.gvcMatchJudgeFunction = LocalizationRecourceManager.GetString(m_strSectionName, "gvcMatchJudgeFunction"); }
private void Localization() { this.btnUpdate.Tooltip = LocalizationRecourceManager.GetString(strSectionName, "Update"); this.lbMatchList.Text = LocalizationRecourceManager.GetString(strSectionName, "MatchList"); this.lbFilterEvent.Text = LocalizationRecourceManager.GetString(strSectionName, "Event"); this.lbFilterDate.Text = LocalizationRecourceManager.GetString(strSectionName, "Date"); this.lbFilterVenue.Text = LocalizationRecourceManager.GetString(strSectionName, "Venue"); this.lbFilterPhase.Text = LocalizationRecourceManager.GetString(strSectionName, "Phase"); this.lbFilterCourt.Text = LocalizationRecourceManager.GetString(strSectionName, "Court"); }
private void Localization() { String strSectionName = GVAR.g_ARPlugin.GetSectionName(); this.TitleText = LocalizationRecourceManager.GetString(strSectionName, "OVRARPlugin_MatchSettingForm_titleText"); this.labX_EndCount.Text = LocalizationRecourceManager.GetString(strSectionName, "OVRARPlugin_MatchSettingForm_labX_EndCount"); this.labX_ArrowCount.Text = LocalizationRecourceManager.GetString(strSectionName, "OVRARPlugin_MatchSettingForm_labX_ArrowCount"); this.btnX_OK.Text = LocalizationRecourceManager.GetString(strSectionName, "OVRARPlugin_MatchSettingForm_btnX_OK"); this.btnX_Cancel.Text = LocalizationRecourceManager.GetString(strSectionName, "OVRARPlugin_MatchSettingForm_btnX_Cancel"); }
public void UpdateUI_PlayerInfo() { String strInfo; String strInfoDes; strInfoDes = LocalizationRecourceManager.GetString(m_strSectionName, "GroupInfo"); strInfo = String.Format(strInfoDes, GetGroupCnt(), GetPlayerCntPerGroup(), GetQualCntPerGroup(), GetGroupCnt() * GetPlayerCntPerGroup(), GetGroupCnt() * GetQualCntPerGroup()); this.lbPlayerCountDes.Text = strInfo; }
private void Localization() { this.lbStageTitle.Text = LocalizationRecourceManager.GetString(m_strSectionName, "lbStageTitle"); this.lbGroupSize.Text = LocalizationRecourceManager.GetString(m_strSectionName, "lbGroupSize"); this.lbGroupCount.Text = LocalizationRecourceManager.GetString(m_strSectionName, "lbGroupCount"); this.lbGroupQual.Text = LocalizationRecourceManager.GetString(m_strSectionName, "lbGroupQual"); this.lbGroupName.Text = LocalizationRecourceManager.GetString(m_strSectionName, "lbGroupName"); this.lbNamingMode.Text = LocalizationRecourceManager.GetString(m_strSectionName, "lbNamingMode"); this.chbUseBegol.Text = LocalizationRecourceManager.GetString(m_strSectionName, "chbUseBegol"); }
private void Localization() { String strSectionName = GVAR.g_FBPlugin.GetSectionName(); this.Text = LocalizationRecourceManager.GetString(strSectionName, "frmEntryOfficial"); lbAvailOfficial.Text = LocalizationRecourceManager.GetString(strSectionName, "lbAvailableOfficial"); lbMatchOfficial.Text = LocalizationRecourceManager.GetString(strSectionName, "lbMatchOfficial"); lbAttendance.Text = LocalizationRecourceManager.GetString(strSectionName, "lbAttendance"); lbMatchMode.Text = LocalizationRecourceManager.GetString(strSectionName, "lbMatchMode"); }
private void Localization() { this.Text = LocalizationRecourceManager.GetString("OVRRegisterInfo", "InfoEditFrm"); this.lbCode.Text = LocalizationRecourceManager.GetString("OVRRegisterInfo", "lbCode"); this.lbLanguage.Text = LocalizationRecourceManager.GetString("OVRRegisterInfo", "lbLanguage"); this.lbLongName.Text = LocalizationRecourceManager.GetString(this.Name, "lbLongName"); this.lbShortName.Text = LocalizationRecourceManager.GetString(this.Name, "lbShortName"); this.lbComment.Text = LocalizationRecourceManager.GetString(this.Name, "lbComment"); this.lbType.Text = LocalizationRecourceManager.GetString(this.Name, "lbDelegationType"); }
private void Localization() { String strSectionName = GVAR.g_EQPlugin.GetSectionName(); this.Text = LocalizationRecourceManager.GetString(strSectionName, "OVREQEditTime"); labX_StartTime.Text = LocalizationRecourceManager.GetString(strSectionName, "labXStartTime"); labX_SpanTime.Text = LocalizationRecourceManager.GetString(strSectionName, "labXSpanTime"); btnX_OK.Text = LocalizationRecourceManager.GetString(strSectionName, "btnXOK"); btnX_Cancel.Text = LocalizationRecourceManager.GetString(strSectionName, "btnXCancel"); }
private void Localization() { this.lbStageTitle.Text = LocalizationRecourceManager.GetString(m_strSectionName, "lbStageTitle"); this.gpRankFirst.Text = LocalizationRecourceManager.GetString(m_strSectionName, "gpRankFirst"); this.gpRankSecond.Text = LocalizationRecourceManager.GetString(m_strSectionName, "gpRankSecond"); this.gpRankThird.Text = LocalizationRecourceManager.GetString(m_strSectionName, "gpRankThird"); this.chbRank1.Text = LocalizationRecourceManager.GetString(m_strSectionName, "chbRank"); this.chbRank2.Text = LocalizationRecourceManager.GetString(m_strSectionName, "chbRank"); this.chbRank3.Text = LocalizationRecourceManager.GetString(m_strSectionName, "chbRank"); }
private bool DelInfoOfMF(int nInfoID) { if (m_dbConnect.State == System.Data.ConnectionState.Closed) { m_dbConnect.Open(); } try { #region DML Command Setup for Del Color SqlCommand cmd = new SqlCommand("Proc_EQ_DelMF", m_dbConnect); cmd.CommandType = CommandType.StoredProcedure; SqlParameter cmdParameter1 = new SqlParameter("@MFID", SqlDbType.Int); SqlParameter cmdParameter2 = new SqlParameter("@Result", SqlDbType.Int); cmdParameter1.Value = nInfoID; cmdParameter2.Direction = ParameterDirection.Output; cmd.Parameters.Add(cmdParameter1); cmd.Parameters.Add(cmdParameter2); cmd.UpdatedRowSource = UpdateRowSource.OutputParameters; #endregion cmd.ExecuteNonQuery(); int nRetValue = (int)cmdParameter2.Value; string strPromotion; switch (nRetValue) { case 0: strPromotion = LocalizationRecourceManager.GetString(this.Name, "FailedMsgBox"); DevComponents.DotNetBar.MessageBoxEx.Show(strPromotion); return(false); case -1: strPromotion = LocalizationRecourceManager.GetString(this.Name, "DelFailed_ID"); DevComponents.DotNetBar.MessageBoxEx.Show(strPromotion); return(false); case -2: strPromotion = LocalizationRecourceManager.GetString(this.Name, "DelMF_Used"); DevComponents.DotNetBar.MessageBoxEx.Show(strPromotion); return(false); default: //其余的为修改成功 m_bModified = true; return(true); } } catch (System.Exception e) { DevComponents.DotNetBar.MessageBoxEx.Show(e.Message); } return(false); }
private void Localization() { String strSectionName = GVAR.g_EQPlugin.GetSectionName(); this.Text = LocalizationRecourceManager.GetString(strSectionName, "OVREQJPTime"); labX_PauseTime.Text = LocalizationRecourceManager.GetString(strSectionName, "labXPauseTime"); labX_CorrectTime.Text = LocalizationRecourceManager.GetString(strSectionName, "labXCorrectTime"); labX_FinalTime.Text = LocalizationRecourceManager.GetString(strSectionName, "labXFinalTime"); btnX_OK.Text = LocalizationRecourceManager.GetString(strSectionName, "btnXOK"); btnX_Cancel.Text = LocalizationRecourceManager.GetString(strSectionName, "btnXCancel"); }
private void Localization() { this.Text = LocalizationRecourceManager.GetString(this.Name, "OVRMatchSchedule_MatchCodeForm"); labX_PreFix.Text = LocalizationRecourceManager.GetString(this.Name, "OVRMatchSchedule_MatchCodeForm_labXPreFix"); labX_StartNumber.Text = LocalizationRecourceManager.GetString(this.Name, "OVRMatchSchedule_MatchCodeForm_labXStartNumber"); labX_Step.Text = LocalizationRecourceManager.GetString(this.Name, "OVRMatchSchedule_MatchCodeForm_labXStep"); labX_CodeLength.Text = LocalizationRecourceManager.GetString(this.Name, "OVRMatchSchedule_MatchCodeForm_labXCodeLength"); chkX_SortByTime.Text = LocalizationRecourceManager.GetString(this.Name, "OVRMatchSchedule_MatchCodeForm_chkXSortByTime"); btnX_OK.Tooltip = LocalizationRecourceManager.GetString(this.Name, "OVRMatchSchedule_MatchCodeForm_btnXOK"); btnX_Cancel.Tooltip = LocalizationRecourceManager.GetString(this.Name, "OVRMatchSchedule_MatchCodeForm_btnXCancel"); }
private void InitCtrlStyleContent() { this.tbStageTitle.Text = LocalizationRecourceManager.GetString(m_strSectionName, "tbTypeFinal"); this.chbRank2.Checked = true; this.chbRank3.Checked = true; this.tbRank1Title.Text = LocalizationRecourceManager.GetString(m_strSectionName, "tbRank1Title"); this.tbRank2Title.Text = LocalizationRecourceManager.GetString(m_strSectionName, "tbRank2Title"); this.tbRank3Title.Text = LocalizationRecourceManager.GetString(m_strSectionName, "tbRank3Title"); this.lbRank1.Text = LocalizationRecourceManager.GetString(m_strSectionName, "lbRankFirst"); }
private void Localization() { this.Text = LocalizationRecourceManager.GetString(m_strSectionName, "frmSetEventModel"); this.RadioByParameter.Text = LocalizationRecourceManager.GetString(m_strSectionName, "RadioByParameter"); this.RadioFromModel.Text = LocalizationRecourceManager.GetString(m_strSectionName, "RadioFromModel"); this.btnOK.Tooltip = LocalizationRecourceManager.GetString(m_strSectionName, "btnOK"); this.btnCancle.Tooltip = LocalizationRecourceManager.GetString(m_strSectionName, "btnClose"); this.btnImportEventModel.Tooltip = LocalizationRecourceManager.GetString(m_strSectionName, "btnImportEventModel"); this.btnDelEventModel.Tooltip = LocalizationRecourceManager.GetString(m_strSectionName, "btnDelEventModel"); this.btnExportEventModel.Tooltip = LocalizationRecourceManager.GetString(m_strSectionName, "btnExportEventModel"); this.lbModelList.Text = LocalizationRecourceManager.GetString(m_strSectionName, "lbModelList"); }
private void Localization() { string strSectionName = GVAR.g_WPPlugin.GetSectionName(); this.Text = LocalizationRecourceManager.GetString(strSectionName, "frmTeamMember"); lbAvailable_Home.Text = LocalizationRecourceManager.GetString(strSectionName, "lbAvailable_Home"); lbAvailable_Visit.Text = LocalizationRecourceManager.GetString(strSectionName, "lbAvailable_Visit"); lbMember_Home.Text = LocalizationRecourceManager.GetString(strSectionName, "lbMember_Home"); lbMember_Visit.Text = LocalizationRecourceManager.GetString(strSectionName, "lbMember_Visit"); gbHomeTeam.Text = m_strHomeName; gbVisitTeam.Text = m_strVisitName; }
void ImportMatchResult(String strImportFile) { if (!File.Exists(strImportFile)) { MessageBox.Show(LocalizationRecourceManager.GetString(strSectionName, "msgImportFile")); return; } Int32 nOrderIndex = strImportFile.ToUpper().IndexOf(".XML"); if (nOrderIndex < 1) { return; } String strOrder = strImportFile[nOrderIndex - 1].ToString(); Int32 nOrder = Convert.ToInt32(strOrder); if (nOrder < 1 || nOrder > 3) { return; } String strInPut = ""; StreamReader sr = new StreamReader(strImportFile); String strLine; while ((strLine = sr.ReadLine()) != null) { strInPut = strInPut + strLine; } sr.Close(); Int32 nMatchID; if (SQCommon.g_ManageDB.ImportMatchResultXML(strInPut, nOrder, out nMatchID)) { String strMsg = LocalizationRecourceManager.GetString(strSectionName, "msgImportResultSuc") + nMatchID.ToString() + "\r\n"; SetTextBoxText(strMsg); } else { String strMsg = LocalizationRecourceManager.GetString(strSectionName, "msgImportMatchResult") + "\r\n"; SetTextBoxText(strMsg); } if (nMatchID > 0) { SQCommon.g_SQPlugin.DataChangedNotify(OVRDataChangedType.emMatchResult, -1, -1, -1, nMatchID, nMatchID, null); } }
private void Localization() { this.Text = LocalizationRecourceManager.GetString(m_strSectionName, "frmDrawModelEdit"); this.lbTitle.Text = LocalizationRecourceManager.GetString(m_strSectionName, "lbTitle"); this.lbType.Text = LocalizationRecourceManager.GetString(m_strSectionName, "lbType"); this.lbNumber.Text = LocalizationRecourceManager.GetString(m_strSectionName, "lbNumber"); this.lbRank.Text = LocalizationRecourceManager.GetString(m_strSectionName, "lbRank"); this.chbBracket.Text = LocalizationRecourceManager.GetString(m_strSectionName, "chbBracket"); this.chbBegol.Text = LocalizationRecourceManager.GetString(m_strSectionName, "chbBegol"); this.btnOk.Tooltip = LocalizationRecourceManager.GetString(m_strSectionName, "btnOk"); this.btnCancel.Tooltip = LocalizationRecourceManager.GetString(m_strSectionName, "btnCancel"); }
private void Localization() { this.cbType.Items.Clear(); this.cbType.Items.Add(LocalizationRecourceManager.GetString(m_strSectionName, "SingleKnockOut")); this.cbType.Items.Add(LocalizationRecourceManager.GetString(m_strSectionName, "SingleRoundRobin")); this.cbType.Items.Add(LocalizationRecourceManager.GetString(m_strSectionName, "RoundRobinKnockOut")); this.cbType.Items.Add(LocalizationRecourceManager.GetString(m_strSectionName, "DoubleKnockOut")); this.cbType.Items.Add(LocalizationRecourceManager.GetString(m_strSectionName, "RoundRobinMultiKnockOut")); this.cbType.SelectedIndex = 0; this.lbPic.Image = global::AutoSports.OVRDrawModel.Properties.Resources.KnockOut; }
private void Localization() { String strSecName = GVAR.g_WPPlugin.GetSectionName(); labelX_SerialPort.Text = LocalizationRecourceManager.GetString(strSecName, "labelX_SerialPort"); labelX_Baudrate.Text = LocalizationRecourceManager.GetString(strSecName, "labelX_Baudrate"); labelX_Parity.Text = LocalizationRecourceManager.GetString(strSecName, "labelX_Parity"); labelX_Databits.Text = LocalizationRecourceManager.GetString(strSecName, "labelX_Databits"); labelX_Stopbits.Text = LocalizationRecourceManager.GetString(strSecName, "labelX_Stopbits"); btn_OK.Text = LocalizationRecourceManager.GetString(strSecName, "btnOK"); btn_Cancel.Text = LocalizationRecourceManager.GetString(strSecName, "btnCancel"); }
private void Localization() { this.labX_MatchInfo.Text = LocalizationRecourceManager.GetString(GVAR.g_ARPlugin.GetSectionName(), "OVRARPlugin_OVRARDataEntryForm_labX_MatchInfo"); this.btnX_MatchSetting.Text = LocalizationRecourceManager.GetString(GVAR.g_ARPlugin.GetSectionName(), "OVRARPlugin_OVRARDataEntryForm_btnX_MatchSetting"); this.btnX_StatusSetting.Text = LocalizationRecourceManager.GetString(GVAR.g_ARPlugin.GetSectionName(), "OVRARPlugin_OVRARDataEntryForm_btnX_StatusSetting"); this.btnX_Exit.Text = LocalizationRecourceManager.GetString(GVAR.g_ARPlugin.GetSectionName(), "OVRARPlugin_OVRARDataEntryForm_btnX_Exit"); this.btnX_Draw.Text = LocalizationRecourceManager.GetString(GVAR.g_ARPlugin.GetSectionName(), "OVRARPlugin_OVRARDataEntryForm_btnX_Edit"); this.btnXOfficials.Text = LocalizationRecourceManager.GetString(GVAR.g_ARPlugin.GetSectionName(), "OVRARPlugin_OVRARDataEntryForm_btnX_Officials"); this.cbInterFace.Text = LocalizationRecourceManager.GetString(GVAR.g_ARPlugin.GetSectionName(), "OVRARPlugin_OVRARDataEntryForm_labX_Interface"); this.btnX_CheckResults.Text = LocalizationRecourceManager.GetString(GVAR.g_ARPlugin.GetSectionName(), "OVRARPlugin_OVRARDataEntryForm_btnX_Check"); }
bool InitMatch() { InitVariant(); if (!SQCommon.g_ManageDB.GetMatchRuleID(m_nCurMatchID)) { MessageBox.Show(LocalizationRecourceManager.GetString(strSectionName, "mbMatchRule")); return(false); } ovrRule = new OVRSQRule(m_nCurMatchID); m_nCurMatchType = ovrRule.m_nMatchType; m_nAdvantage = ovrRule.m_nAdvantage; m_nCurStatusID = ovrRule.m_nMatchStatusID; m_nServerType = ovrRule.m_nServerType; if (!SQCommon.g_ManageDB.GetMatchSplitCount(m_nCurMatchID, m_nCurMatchType, ref m_nSetsCount, ref m_nTeamSplitCount)) { m_nSetsCount = ovrRule.m_nSetsCount; m_nTeamSplitCount = ovrRule.m_nTeamSplitCount; if (1 != SQCommon.g_ManageDB.CreateMatchSplit(m_nCurMatchID, m_nCurMatchType, m_nSetsCount, m_nTeamSplitCount)) { MessageBox.Show(LocalizationRecourceManager.GetString(strSectionName, "mbCreateSplit")); EnableMatchInfo(false, false); EnableMatchCtrlBtn(false); return(false); } SQCommon.g_SQPlugin.DataChangedNotify(OVRDataChangedType.emSplitAdd, -1, -1, -1, m_nCurMatchID, m_nCurMatchID, null); SQCommon.g_SQPlugin.DataChangedNotify(OVRDataChangedType.emSplitInfo, -1, -1, -1, m_nCurMatchID, m_nCurMatchID, null); } InitMatchDes(); UpdateMatchStatus(); // Load Split IDs if (m_nCurMatchType == SQCommon.MATCH_TYPE_SINGLE) { SQCommon.g_bUseSetsRule = ovrRule.m_bSetRule; SQCommon.g_bUseSplitsRule = ovrRule.m_bSplitRule; return(LoadSetSplitIDs(0)); } else if (m_nCurMatchType == SQCommon.MATCH_TYPE_TEAM) { SQCommon.g_bUseSetsRule = ovrRule.m_bSetRule; SQCommon.g_bUseSplitsRule = ovrRule.m_bSplitRule; return(LoadTeamSplitIDs()); } return(false); }
private void TcpException() { m_bStartClient = false; m_client.Close(); this.btnx_Start.Text = LocalizationRecourceManager.GetString(GFCommon.g_strSectionName, "btnxStart"); pb_Connect.Image = global::AutoSports.OVRGFPlugin.Properties.Resources.DisConnected; this.tbIP.Enabled = true; this.tbPort.Enabled = true; string strNetErr = "TcpException...Network disconnected..."; DevComponents.DotNetBar.MessageBoxEx.Show(strNetErr); }
private void cbRank3End_SelectedIndexChanged(object sender, EventArgs e) { //刷新显示Rank3的信息 String strInfo; String strMsg; strMsg = LocalizationRecourceManager.GetString(m_strSectionName, "lbRankInfo"); strInfo = String.Format(strMsg, GetRankIndexStart(3), GetRankIndexEnd(3)); this.lbRank3Desc.Text = strInfo; }
private void Localization() { //this.Text = LocalizationRecourceManager.GetString(this.Name, "InfoListFrm"); this.lbLanguage.Text = LocalizationRecourceManager.GetString(this.Name, "lbLanguage"); switch (Convert.ToInt32(m_emInfoType)) { case 6: strInfoValue = LocalizationRecourceManager.GetString("OVREQPlugin", "lbListInfo_MF"); break; } this.Text = strInfoValue; }
private void Localization() { this.Text = LocalizationRecourceManager.GetString(this.Name, this.Name); btnRecordNew.Tooltip = LocalizationRecourceManager.GetString(this.Name, btnRecordNew.Name); btnRecordDel.Tooltip = LocalizationRecourceManager.GetString(this.Name, btnRecordDel.Name); btnRecordValueDel.Tooltip = LocalizationRecourceManager.GetString(this.Name, btnRecordValueDel.Name); btnRecordValueNew.Tooltip = LocalizationRecourceManager.GetString(this.Name, btnRecordValueNew.Name); lbEventRecords.Text = LocalizationRecourceManager.GetString(this.Name, lbEventRecords.Name); lbRecordMember.Text = LocalizationRecourceManager.GetString(this.Name, lbRecordMember.Name); lbRecordValue.Text = LocalizationRecourceManager.GetString(this.Name, lbRecordValue.Name); }
public Boolean isValued() //所有设置是否合法,会弹出对话框提示 { Int32 nPlayerCnt = (Int32)Math.Pow(2, GetLayerCntPerGroup()); if (nPlayerCnt < GetQualCntPerGroup()) { String strMsg = LocalizationRecourceManager.GetString(m_strSectionName, "KORankPlayerError"); DevComponents.DotNetBar.MessageBoxEx.Show(strMsg); return(false); } return(true); }
private void btnxManualPathSel_Click(object sender, EventArgs e) { if (folderSelDlg.ShowDialog() == DialogResult.OK) { if (!Directory.Exists(folderSelDlg.SelectedPath)) { MessageBox.Show(LocalizationRecourceManager.GetString(strSectionName, "msgImportPath")); return; } tbManualPath.Text = folderSelDlg.SelectedPath; } }