private void OKButton_Click(object sender, EventArgs e)
 {
     if (TLT == TimeLemetionType.AddTime)
     {
         if (RightsTime > 0 && TimeTextBox.Text != "-" && TimeTextBox.Text != "-0")
         {
             if (TimeTextBox.Text.Contains("-"))
             {
                 ACS.SendPCStatus(NI, ALEmanCafeServer.MessageStatus.addtime, TimeTextBox.Text.Contains("-"), RightsTime, this.PaidCheckBox.Checked);
             }
             else
             {
                 ACS.SendPCStatus(NI, ALEmanCafeServer.MessageStatus.addtime, TimeTextBox.Text.Contains("-"), RightsTime, this.PaidCheckBox.Checked);
             }
             this.Close();
             this.Dispose();
         }
     }
     else if (TLT == TimeLemetionType.LimitTime)
     {
         if (RightsTime > 0)
         {
             if (RightsTime <= NI.UsedTime)
             {
                 return;
             }
             ACS.SendPCStatus(NI, ALEmanCafeServer.MessageStatus.limittime, false, RightsTime, this.PaidCheckBox.Checked);
             this.Close();
             this.Dispose();
         }
     }
 }
        private void OKButton_Click(object sender, EventArgs e)
        {
            if (string.IsNullOrEmpty(TimeTextBox.Text) == false)
            {
                if (RightsTime > 0)
                {
                    if (GameCheckBox.Visible && TLT == TimeLemetionType.Unknown)
                    {
                        if (GameCheckBox.Checked && PaidCheckBox.Checked)
                        {
                            TLT = TimeLemetionType.GamePlayAndPay;
                        }
                        else if (GameCheckBox.Checked)
                        {
                            TLT = TimeLemetionType.GamePrepaid;
                        }
                        else if (PaidCheckBox.Checked)
                        {
                            TLT = TimeLemetionType.PlayAndPay;
                        }
                        else
                        {
                            TLT = TimeLemetionType.Prepaid;
                        }
                    }

                    if (TLT == TimeLemetionType.GamePlayAndPay)
                    {
                        ACS.SendPCStatus(NI, ALEmanCafeServer.MessageStatus.login, true, RightsTime, true);
                    }
                    else if (TLT == TimeLemetionType.GamePrepaid)
                    {
                        ACS.SendPCStatus(NI, ALEmanCafeServer.MessageStatus.login, true, RightsTime, false);
                    }
                    else if (TLT == TimeLemetionType.PlayAndPay)
                    {
                        ACS.SendPCStatus(NI, ALEmanCafeServer.MessageStatus.login, false, RightsTime, true);
                    }
                    else if (TLT == TimeLemetionType.Prepaid)
                    {
                        ACS.SendPCStatus(NI, ALEmanCafeServer.MessageStatus.login, false, RightsTime, false);
                    }

                    this.Close();
                    this.Dispose();
                }
            }
        }
 private void OKButton_Click(object sender, EventArgs e)
 {
     if (NI != null)
     {
         ACS.SendPCStatus(NI, ALEmanCafeServer.MessageStatus.sendmessage, false, 0, false, null, richTextBox1.Text);
     }
     else
     {
         foreach (NetworkItems NI2 in NetworkItems.ALLNetworks.Values)
         {
             if (string.IsNullOrEmpty(NI2.IP) == false)
             {
                 ACS.SendPCStatus(NI2, ALEmanCafeServer.MessageStatus.sendmessage, false, 0, false, null, richTextBox1.Text);
             }
         }
     }
     CancelCloseButton.PerformClick();
 }