我不斷收到NotImplementedException錯誤試圖讓我啓動遊戲打開與該代碼外部可執行文件時:打開外部可執行文件與Windows窗體應用程序
using System;
using System.ComponentModel;
using System.Collections.Generic;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using System.IO;
using System.IO.Compression;
using System.Diagnostics;
using System.Net;
namespace WindowsFormsApplication1
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private void button1_Click(object sender, EventArgs e)
{
Process.Start("C:/Users/Me/AppData/Local/osu!");
}
private void openFileDialog1_FileOk(object sender, CancelEventArgs e)
{
}
private void folderBrowserDialog1_HelpRequest(object sender, EventArgs e)
{
}
private void webBrowser1_DocumentCompleted(object sender, WebBrowserDocumentCompletedEventArgs e)
{
}
private void Form1_Load(object sender, EventArgs e)
{
}
private void button2_Click(object sender, EventArgs e)
{
Environment.Exit(0);
}
}
internal class CustomWindow
{
private string v;
public CustomWindow(string v)
{
this.v = v;
}
internal void Show()
{
throw new NotImplementedException();
}
}
internal class Window1 : Form
{
}
internal class Process
{
public object StartInfo { get; internal set; }
internal static void Start(string v)
{
throw new NotImplementedException();
}
}
}
注:我剛開始學習C#,所以今天請儘量耐心w /我。
哪一行代碼導致異常? –