سلام دوستان من توی این کدی که به شکل win form هس مشکل دارم می خوام کد رو توی
static void main()
قرار بدم یعنی می خوام اجراشو تو کنسول ببینم ولی نمیدونم چطوری باید بزارمش
کد اصلی اینه که میخوام بزارم تو بدنه مین
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 System.Numerics;
namespace Multiplication40
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private void textBox1_TextChanged(object sender, EventArgs e)
{
lblCount1.Text = textBox1.Text.Length.ToString();
}
private void textBox2_TextChanged(object sender, EventArgs e)
{
label2.Text = textBox2.Text.Length.ToString();
}
private void button1_Click(object sender, EventArgs e)
{
BigInteger big1=new BigInteger(Convert.ToDouble(textBox1.Text));
BigInteger big2=new BigInteger(Convert.ToDouble(textBox2.Text));
lblResult.Text = Multiple.multiple(big1,big2).ToString();
}
private void textBox1_KeyPress(object sender, KeyPressEventArgs e)
{
if (!char.IsDigit(e.KeyChar) && e.KeyChar != (char)Keys.Back)
e.Handled = true;
}
private void textBox2_KeyPress(object sender, KeyPressEventArgs e)
{
if (!char.IsDigit(e.KeyChar) && e.KeyChar != (char)Keys.Back)
e.Handled = true;
}
}
}
راهنمایی کنین لطفا
مرسی