Пример #1
0
 private void editUserToolStripMenuItem_Click(object sender, EventArgs e)
 {
     if (this.listViewEx1.SelectedItems.Count != 0)
     {
         ClientHelper.Client clientInformation = ClientHelper.GetClientInformation(this.listViewEx1.SelectedItems[0].Index);
         (new frmClient(this.listViewEx1.SelectedItems[0].Index, clientInformation.Username, clientInformation.CPUKey, clientInformation.Expiration, clientInformation.Tier, clientInformation.PaymentInfo)).ShowDialog();
         if (frmMain.dorefresh)
         {
             this.RefreshUsers();
         }
     }
 }
Пример #2
0
 private void fetchClientInfoToolStripMenuItem_Click(object sender, EventArgs e)
 {
     if (this.listViewEx1.SelectedItems.Count != 0)
     {
         ClientHelper.Client clientInformation = ClientHelper.GetClientInformation(this.listViewEx1.SelectedItems[0].Index);
         string str = string.Concat("Username: "******"CPU Key: ", clientInformation.CPUKey, Environment.NewLine);
         str = string.Concat(str, "Expiration: ", clientInformation.Expiration, Environment.NewLine);
         str = string.Concat(str, "Last IP: ", clientInformation.LastIP, Environment.NewLine);
         str = string.Concat(str, "Tier: ", clientInformation.Tier, Environment.NewLine);
         str = string.Concat(str, "Payment Info: ", clientInformation.PaymentInfo);
         if (MessageBoxEx.Show(string.Concat(str, "\n\nDo you want to copy this information to the clipboard?"), "Get Client Information", MessageBoxButtons.YesNo) == System.Windows.Forms.DialogResult.Yes)
         {
             Clipboard.SetText(str);
         }
     }
 }