控制台程序调用winform要传个参数过去。该如何实现?在线急等
代码如下:
public class Program
{
static void Main(string[] args)
{
mark:
Console.WriteLine( "请输入参数 ");
string InputString = Console.ReadLine();
if (InputString == string.Empty)
{
goto mark;
}
else
{
char[] SplitChar = new char[] { ' ' };
string[] Arrrlist = InputString.Split(SplitChar, StringSplitOptions.RemoveEmptyEntries);
SecureString Password=new SecureString();
if (Arrrlist.Length == 4)
{
Password.Clear();
string Name = Arrrlist[0].Trim();
string TempPassword = Arrrlist[1].Trim();
foreach (char pass in TempPassword.ToCharArray())
{
&n