Exemplo n.º 1
0
 private void thirteenButton1_Click(object sender, EventArgs e)
 {
     try
     {
         if (!string.IsNullOrEmpty(dataGridView1.Rows[dataGridView1.CurrentRow.Index].Cells[0].Value.ToString()))
         {
             if (string.IsNullOrEmpty(thirteenTextBox1.Text))
             {
                 MessageBox.Show("Please enter a window title!", "TitleSpoof by Centos", MessageBoxButtons.OK, MessageBoxIcon.Error);
             }
             else
             {
                 new TitleSpoof.WindowSpoofer().Set(dataGridView1.Rows[dataGridView1.CurrentRow.Index].Cells[0].Value.ToString(), thirteenTextBox1.Text, 0);
                 dataGridView1.Rows.Clear();
                 Task.Run(() => Spoofer.Populate(dataGridView1));
             }
         }
         else
         {
             MessageBox.Show("Please select a cell with a value!", "TitleSpoof by Centos", MessageBoxButtons.OK, MessageBoxIcon.Error);
         }
     }
     catch
     {
         MessageBox.Show("Unknown error.", "TitleSpoof by Centos", MessageBoxButtons.OK, MessageBoxIcon.Error);
     }
 }
Exemplo n.º 2
0
 private void thirteenButton2_Click(object sender, EventArgs e)
 {
     dataGridView1.Rows.Clear();
     Task.Run(() => Spoofer.Populate(dataGridView1));
 }
Exemplo n.º 3
0
 private void Main_Load(object sender, EventArgs e)
 {
     DataGridView.CheckForIllegalCrossThreadCalls = false;
     Task.Run(() => Spoofer.Populate(dataGridView1));
 }