MainForm.cs

(开头部分) 4KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using CS_Krc_Lib;
namespace KrcHelper
{
    public partial class MainForm : CS_Skin.UI.FormBase
    {
        public MainForm()
        {
            InitializeComponent();
            
        }

        public string defaultFile = "";
        private void 退出ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            this.Close();
        }

        private void 打开ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            OpenFile();
        }

        private void OpenFile()
        {
            OpenFileDialog ofd = new OpenFileDialog();
            ofd.Filter = "(Krc歌词文件)|*.krc|(所有文件)|*.*";
            ofd.Multiselect = false;
            ofd.Title = "请选择Krc歌词文件:";
            if (ofd.ShowDialog() == DialogResult.OK)
            {
                Decode(ofd.FileName);
            }
        }

        private void Decode(string fileName)
        {
            try
            {
                richTextBox1.Text = KrcDecode.Decode(fileName);
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message);
            }
        }
        // 下载于www.51aspx.com
        private void richTextBox1_TextChanged(object sender, EventArgs e)
        {
            
        }

        private void MainForm_Load(object sender, EventArgs e)
后面还有 93 行代码,解锁后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明

AI 解读

登录后可用,每次 10 积分,解读结果公开显示在下面。

还没有人解读过这个文件。