• 大小: 0.03M
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2021-05-06
  • 语言: 其他
  • 标签: 其他  

资源简介

GodOfHacker-master.zip

资源截图

代码片段和文件信息

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using System.IO;

namespace GodOfHacker
{
    public partial class FM_God : Form
    {
        public FM_God()
        {
            InitializeComponent();
            comboBox1.SelectedIndex = 0;
            if(!File.Exists(“plugin.txt“))
            {
                string path = Application.StartupPath + “\\plugin.txt“;
                FileStream fs = new FileStream(path FileMode.OpenOrCreate FileAccess.ReadWrite); //可以指定盘符,也可以指定任意文件名,还可以为word等文件
                StreamWriter sw = new StreamWriter(fs); // 创建写入流
                sw.Close(); //关闭文件
            }
        }

        public static List readFileToList(string fileName)
        {
            FileStream fs = new FileStream(fileName FileMode.Open FileAccess.Read);
            List list = new List();
            StreamReader m_streamReader = new StreamReader(fs System.Text.Encoding.Default);
            m_streamReader.baseStream.Seek(0 SeekOrigin.Begin);
            string strLine = m_streamReader.ReadLine();
            while (strLine != null)
            {
                list.Add(strLine);
                strLine = m_streamReader.ReadLine();
            }
            m_streamReader.Close();
            return list;
        }

        private void button1_Click(object sender EventArgs e)
        {
            progressBar1.Value = 0;
            for (int i = 0; i < 97; i++)
            {
                progressBar1.Value++;
            }
        }

        private void button2_Click(object sender EventArgs e)
        {
            progressBar1.Value = 0;
            for (int i = 0; i < 97; i++)
            {
                progressBar1.Value++;
            }
        }

        private void button36_Click(object sender EventArgs e)
        {
            MessageBox.Show(“已经锤爆出题人的狗头!“);
        }

        private void button51_Click(object sender EventArgs e)
        {
            FM_show fs = new FM_show(text_cumtitle.Texttext_cumText.Text (int)numericUpDown1.Value);
            fs.Owner = this;
            fs.Show();
        }

        private void linkLabel1_linkClicked(object sender linkLabellinkClickedEventArgs e)
        {
            System.Diagnostics.Process.Start(“https://github.com/WWILLV/GodOfHacker/“);
        }

        private void button59_Click(object sender EventArgs e)
        {
            //http://music.163.com/#/m/song?id=333750&userid=340656630
            System.Diagnostics.Process.Start(“http://music.163.com/outchain/player?type=2&id=333750&auto=1“);
        }

        private void button71_Click(object sender EventArgs e)
        {
            MessageBox.Show(“OK“);
        }

        private void button73_Click(object sender EventArgs e)
        {
            MessageBox.Show(“哪里有什么商店\r\n在plugin.txt里写入想要的插件,一行一个就行

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2019-01-12 12:47  GodOfHacker-master\
     文件        2518  2019-01-12 12:47  GodOfHacker-master\.gitattributes
     文件        3833  2019-01-12 12:47  GodOfHacker-master\.gitignore
     文件         978  2019-01-12 12:47  GodOfHacker-master\GodOfHacker.sln
     目录           0  2019-01-12 12:47  GodOfHacker-master\GodOfHacker\
     文件         184  2019-01-12 12:47  GodOfHacker-master\GodOfHacker\App.config
     文件       65671  2019-01-12 12:47  GodOfHacker-master\GodOfHacker\FM_God.Designer.cs
     文件        4956  2019-01-12 12:47  GodOfHacker-master\GodOfHacker\FM_God.cs
     文件       25076  2019-01-12 12:47  GodOfHacker-master\GodOfHacker\FM_God.resx
     文件        3729  2019-01-12 12:47  GodOfHacker-master\GodOfHacker\FM_plugin.Designer.cs
     文件        1224  2019-01-12 12:47  GodOfHacker-master\GodOfHacker\FM_plugin.cs
     文件        5698  2019-01-12 12:47  GodOfHacker-master\GodOfHacker\FM_plugin.resx
     文件        2605  2019-01-12 12:47  GodOfHacker-master\GodOfHacker\FM_show.Designer.cs
     文件        1039  2019-01-12 12:47  GodOfHacker-master\GodOfHacker\FM_show.cs
     文件        5698  2019-01-12 12:47  GodOfHacker-master\GodOfHacker\FM_show.resx
     文件        4681  2019-01-12 12:47  GodOfHacker-master\GodOfHacker\GodOfHacker.csproj
     文件         502  2019-01-12 12:47  GodOfHacker-master\GodOfHacker\Program.cs
     目录           0  2019-01-12 12:47  GodOfHacker-master\GodOfHacker\Properties\
     文件        1312  2019-01-12 12:47  GodOfHacker-master\GodOfHacker\Properties\AssemblyInfo.cs
     文件        2764  2019-01-12 12:47  GodOfHacker-master\GodOfHacker\Properties\Resources.Designer.cs
     文件        5496  2019-01-12 12:47  GodOfHacker-master\GodOfHacker\Properties\Resources.resx
     文件        1068  2019-01-12 12:47  GodOfHacker-master\GodOfHacker\Properties\Settings.Designer.cs
     文件         242  2019-01-12 12:47  GodOfHacker-master\GodOfHacker\Properties\Settings.settings
     文件       12862  2019-01-12 12:47  GodOfHacker-master\GodOfHacker\ico.ico
     文件        2224  2019-01-12 12:47  GodOfHacker-master\README.md

评论

共有 条评论