private void backgroundWorkerRePatriarchBuyPetLog_DoWork(object sender, DoWorkEventArgs e)
 {
     lock (typeof(C_Event.CSocketEvent))
     {
         e.Result = Operation_JW2.GetResult(m_ClientEvent, CEnum.ServiceKey.JW2_FamilyFund_Log, (CEnum.Message_Body[])e.Argument);
     }
 }
Exemple #2
0
 private void backgroundWorkerKickPlayer_DoWork(object sender, DoWorkEventArgs e)
 {
     lock (typeof(C_Event.CSocketEvent))
     {
         e.Result = Operation_JW2.GetResult(tmp_ClientEvent, CEnum.ServiceKey.JW2_BANISHPLAYER, (CEnum.Message_Body[])e.Argument);
     }
 }
 private void backgroundWorkerReCoupleLog_DoWork(object sender, DoWorkEventArgs e)
 {
     lock (typeof(C_Event.CSocketEvent))
     {
         e.Result = Operation_JW2.GetResult(m_ClientEvent, CEnum.ServiceKey.JW2_MaterialHistory_Query, (CEnum.Message_Body[])e.Argument);
     }
 }
 private void backgroundWorkerRePlayLog_DoWork(object sender, DoWorkEventArgs e)
 {
     lock (typeof(C_Event.CSocketEvent))
     {
         e.Result = Operation_JW2.GetResult(this.m_ClientEvent, CEnum.ServiceKey.JW2_PicCard_Query, (CEnum.Message_Body[])e.Argument);
     }
 }
 private void backgroundWorkerRepeatBuyLogDel_DoWork(object sender, DoWorkEventArgs e)
 {
     lock (typeof(C_Event.CSocketEvent))
     {
         e.Result = Operation_JW2.GetResult(m_ClientEvent, CEnum.ServiceKey.JW2_AgainBuy_Query, (CEnum.Message_Body[])e.Argument);
     }
 }
 private void backgroundWorkerReAnotherFamilyLog_DoWork(object sender, DoWorkEventArgs e)
 {
     lock (typeof(C_Event.CSocketEvent))
     {
         e.Result = Operation_JW2.GetResult(tmp_ClientEvent, CEnum.ServiceKey.Au_BroaditeminfoBymsg_Query, (CEnum.Message_Body[])e.Argument);
     }
 }
 private void backgroundWorkerEditNotice_DoWork(object sender, DoWorkEventArgs e)
 {
     lock (typeof(C_Event.CSocketEvent))
     {
         e.Result = Operation_JW2.GetResult(m_ClientEvent, CEnum.ServiceKey.SD_TaskList_Update, (CEnum.Message_Body[])e.Argument);
     }
 }
Exemple #8
0
 private void backgroundWorker1_DoWork(object sender, DoWorkEventArgs e)
 {
     lock (typeof(C_Event.CSocketEvent))
     {
         e.Result = Operation_JW2.GetResult(m_ClientEvent, CEnum.ServiceKey.Au_User_Msg_Query, (CEnum.Message_Body[])e.Argument);
     }
 }
Exemple #9
0
 private void backgroundWorkerCoupleCard_DoWork(object sender, DoWorkEventArgs e)
 {
     lock (typeof(C_Event.CSocketEvent))
     {
         e.Result = Operation_JW2.GetResult(m_ClientEvent, CEnum.ServiceKey.JW2_CoupleParty_Card, (CEnum.Message_Body[])e.Argument);
     }
 }
 private void backgroundWorkerRecoverPassword_DoWork(object sender, DoWorkEventArgs e)
 {
     lock (typeof(C_Event.CSocketEvent))
     {
         e.Result = Operation_JW2.GetResult(m_ClientEvent, CEnum.ServiceKey.JW2_RECALL_PWD, (CEnum.Message_Body[])e.Argument);
     }
 }
 private void backgroundWorkerCheckPwd_DoWork(object sender, DoWorkEventArgs e)
 {
     lock (typeof(C_Event.CSocketEvent))
     {
         e.Result = Operation_JW2.GetResult(tmp_ClientEvent, CEnum.ServiceKey.JW2_SearchPassWord_Query, (CEnum.Message_Body[])e.Argument);
     }
 }
 private void backgroundWorkerWeddingInfo_DoWork(object sender, DoWorkEventArgs e)
 {
     lock (typeof(C_Event.CSocketEvent))
     {
         e.Result = Operation_JW2.GetResult(m_ClientEvent, CEnum.ServiceKey.JW2_WEDDINGINFO_QUERY, (CEnum.Message_Body[])e.Argument);
     }
 }
 private void backgroundWorkerReSearch_DoWork(object sender, DoWorkEventArgs e)
 {
     lock (typeof(C_Event.CSocketEvent))
     {
         e.Result = Operation_JW2.GetResult(m_ClientEvent, CEnum.ServiceKey.JW2_ACCOUNT_QUERY, (CEnum.Message_Body[])e.Argument);
     }
 }
Exemple #14
0
 private void backgroundWorkerReApplicationMember_DoWork(object sender, DoWorkEventArgs e)
 {
     lock (typeof(C_Event.CSocketEvent))
     {
         e.Result = Operation_JW2.GetResult(m_ClientEvent, CEnum.ServiceKey.JW2_FamilyMember_Applying, (CEnum.Message_Body[])e.Argument);
     }
 }
 private void backgroundWorkerReFamilyConsumerLog_DoWork(object sender, DoWorkEventArgs e)
 {
     lock (typeof(C_Event.CSocketEvent))
     {
         e.Result = Operation_JW2.GetResult(m_ClientEvent, CEnum.ServiceKey.JW2_CashMoney_Log, (CEnum.Message_Body[])e.Argument);
     }
 }
Exemple #16
0
 private void backgroundWorkerReFamilyMember_DoWork(object sender, DoWorkEventArgs e)
 {
     lock (typeof(C_Event.CSocketEvent))
     {
         e.Result = Operation_JW2.GetResult(tmp_ClientEvent, CEnum.ServiceKey.JW2_FAMILYMEMBER_QUERY, (CEnum.Message_Body[])e.Argument);
     }
 }
Exemple #17
0
 private void backgroundWorkerModiGmManager_DoWork(object sender, DoWorkEventArgs e)
 {
     lock (typeof(C_Event.CSocketEvent))
     {
         e.Result = Operation_JW2.GetResult(m_ClientEvent, CEnum.ServiceKey.JW2_GM_Update, (CEnum.Message_Body[])e.Argument);
     }
 }
Exemple #18
0
 private void backgroundWorkerReSmallPetEggExchange_DoWork(object sender, DoWorkEventArgs e)
 {
     lock (typeof(C_Event.CSocketEvent))
     {
         e.Result = Operation_JW2.GetResult(m_ClientEvent, CEnum.ServiceKey.JW2_SmallPetAgg_Query, (CEnum.Message_Body[])e.Argument);
     }
 }
 private void backgroundWorkerSendNotice_DoWork(object sender, DoWorkEventArgs e)
 {
     lock (typeof(C_Event.CSocketEvent))
     {
         e.Result = Operation_JW2.GetResult(m_ClientEvent, CEnum.ServiceKey.JW2_BOARDTASK_INSERT, (CEnum.Message_Body[])e.Argument);
     }
 }
        private void BtnEdit_Click(object sender, EventArgs e)
        {
            //this.cmbStauas.Items.Clear();
            //this.cmbStauas.Items.Add(config.ReadConfigValue("MJW2", "FN_Code_msgNoSendupdatenotice"));
            //this.cmbStauas.Items.Add(config.ReadConfigValue("MJW2", "FN_Code_msgSendingupdatenotice"));
            //this.cmbStauas.Items.Add(config.ReadConfigValue("MJW2", "FN_Code_msgSendedupdatenotice"));
            //this.cmbStauas.SelectedIndex = 0;


            if (MessageBox.Show(config.ReadConfigValue("MSDO", "FN_Code_msgupdatenotice"), config.ReadConfigValue("MSDO", "FN_Code_msgnote"), MessageBoxButtons.OKCancel, MessageBoxIcon.Information) == DialogResult.OK)
            {
                if (chbNoticeImmed.Checked == false && nudTimeSpan.Value < 5)
                {
                    MessageBox.Show(config.ReadConfigValue("MJW2", "NEW_UI_SendIntervalNotbelowfive"));
                    return;
                }
                if (chbNoticeImmed.Checked != true)
                {
                    if (Convert.ToInt32((DptEndTime.Value - DptStartTime.Value).TotalMinutes) < int.Parse(nudTimeSpan.Value.ToString()))
                    {
                        MessageBox.Show(config.ReadConfigValue("MJW2", "NEW_UI_StartandEndBelowInterval"));
                        return;
                    }
                }


                CEnum.Message_Body[] mContent = new CEnum.Message_Body[8];



                mContent[0].eName    = CEnum.TagName.JW2_Status;
                mContent[0].eTag     = CEnum.TagFormat.TLV_INTEGER;
                mContent[0].oContent = ReturnStauas(cmbStauas.Text.Trim());

                mContent[1].eName    = CEnum.TagName.JW2_BoardMessage;
                mContent[1].eTag     = CEnum.TagFormat.TLV_STRING;
                mContent[1].oContent = txtContent.Text.Trim();

                mContent[2].eName    = CEnum.TagName.UserByID;
                mContent[2].eTag     = CEnum.TagFormat.TLV_INTEGER;
                mContent[2].oContent = int.Parse(m_ClientEvent.GetInfo("USERID").ToString());

                mContent[3].eName    = CEnum.TagName.JW2_TaskID;
                mContent[3].eTag     = CEnum.TagFormat.TLV_INTEGER;
                mContent[3].oContent = iBoardID;

                mContent[4].eName    = CEnum.TagName.JW2_BeginTime;
                mContent[4].eTag     = CEnum.TagFormat.TLV_STRING;
                mContent[4].oContent = DptStartTime.Text.ToString();

                mContent[5].eName    = CEnum.TagName.JW2_EndTime;
                mContent[5].eTag     = CEnum.TagFormat.TLV_STRING;
                mContent[5].oContent = DptEndTime.Text.ToString();

                mContent[6].eName    = CEnum.TagName.JW2_Interval;
                mContent[6].eTag     = CEnum.TagFormat.TLV_INTEGER;
                mContent[6].oContent = Convert.ToInt32(nudTimeSpan.Value);


                mContent[7].eName    = CEnum.TagName.JW2_ServerIP;
                mContent[7].eTag     = CEnum.TagFormat.TLV_STRING;
                mContent[7].oContent = "";
                //mContent[7].eName = CEnum.TagName.JW2_TaskID;
                //mContent[7].eTag = CEnum.TagFormat.TLV_INTEGER;
                //mContent[7].oContent = iBoardID;


                CEnum.Message_Body[,] mResult1 = Operation_JW2.GetResult(m_ClientEvent, CEnum.ServiceKey.JW2_BOARDTASK_UPDATE, mContent);

                if (mResult1[0, 0].eName == CEnum.TagName.ERROR_Msg)
                {
                    MessageBox.Show(mResult1[0, 0].oContent.ToString());
                    return;
                }

                if (mResult1[0, 0].eName == CEnum.TagName.Status && mResult1[0, 0].oContent.Equals("FAILURE"))
                {
                    MessageBox.Show(config.ReadConfigValue("MJW2", "NEW_UI_ModiFailure"));
                    return;

                    this.cmbStauas.Visible = false;
                    this.label11.Visible   = false;

                    this.label11.Visible   = false;
                    this.cmbStauas.Visible = false;
                }
                else
                {
                    MessageBox.Show(config.ReadConfigValue("MJW2", "NEW_UI_ModiSuccess"));
                    cmbType.Visible = false;
                    lblType.Visible = false;

                    BtnEdit.Visible        = false;
                    btnAddNotice.Visible   = true;
                    this.label11.Visible   = false;
                    this.cmbStauas.Visible = false;
                    Setdefault();

                    btnAddNotice.Enabled = true;
                    btnAddNotice.Visible = true;

                    this.cmbStauas.Enabled = false;
                    this.label11.Enabled   = false;

                    //lblserver.Visible = false;

                    DptStartTime.Enabled = true;
                    DptEndTime.Enabled   = true;
                    txtContent.Enabled   = true;
                    nudTimeSpan.Enabled  = true;
                }
            }
        }