Skip to content

Commit

Permalink
deleted unuseful usings
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaohuihui1022 authored Jan 5, 2023
1 parent d838ba1 commit 6e40cd9
Show file tree
Hide file tree
Showing 7 changed files with 407 additions and 418 deletions.
12 changes: 6 additions & 6 deletions VapeV114514/App.config
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<startup>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.7.1"/>
</startup>
</configuration>
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<startup>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.7.1"/>
</startup>
</configuration>
144 changes: 72 additions & 72 deletions VapeV114514/Form1.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

148 changes: 70 additions & 78 deletions VapeV114514/Form1.cs
Original file line number Diff line number Diff line change
@@ -1,78 +1,70 @@
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using LogSystem;
using System.Diagnostics;
using System.Threading;
using System.Windows.Forms;
using System.Runtime.InteropServices;
using System.IO;
using System.Media;

namespace VapeV114514
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
CheckForIllegalCrossThreadCalls = false;
}
Log log = new Log();
SoundPlayer sp = new SoundPlayer(Properties.Resource.g);
private void button1_Click(object sender, EventArgs e)
{
Thread th = new Thread(progress);
th.Start();
}
public bool FindThread(string threadName)
{
Process[] processList = Process.GetProcesses();
foreach (Process process in processList)
{
if (process.ProcessName.ToLower() == threadName.ToLower())
{
return true;
}
}
return false;
}

private void progress()
{
button1.Enabled = false;
button1.Text = "Injecting...";
int i = 0;
while (true)
{
progressBar1.Value = i;
i++;
Thread.Sleep(100);
if (progressBar1.Value >= 100)
{
OpenMedia();
log.Error("2333333333333333333333333333333333333");
break;
}
}
}
void OpenMedia()
{
sp.PlayLooping();
}

void CloseMedia()
{
sp.Stop();
}

private void Form1_FormClosed(object sender, FormClosedEventArgs e)
{
CloseMedia();
}
}
}
using System;
using LogSystem;
using System.Diagnostics;
using System.Threading;
using System.Windows.Forms;
using System.Media;

namespace VapeV114514
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
CheckForIllegalCrossThreadCalls = false;
}
Log log = new Log();
SoundPlayer sp = new SoundPlayer(Properties.Resource.g);
private void button1_Click(object sender, EventArgs e)
{
Thread th = new Thread(progress);
th.Start();
}
public bool FindThread(string threadName)
{
Process[] processList = Process.GetProcesses();
foreach (Process process in processList)
{
if (process.ProcessName.ToLower() == threadName.ToLower())
{
return true;
}
}
return false;
}

private void progress()
{
button1.Enabled = false;
button1.Text = "Injecting...";
int i = 0;
while (true)
{
progressBar1.Value = i;
i++;
Thread.Sleep(100);
if (progressBar1.Value >= 100)
{
OpenMedia();
log.Error("2333333333333333333333333333333333333");
break;
}
}
}
void OpenMedia()
{
sp.PlayLooping();
}

void CloseMedia()
{
sp.Stop();
}

private void Form1_FormClosed(object sender, FormClosedEventArgs e)
{
CloseMedia();
}
}
}
Loading

0 comments on commit 6e40cd9

Please sign in to comment.