static void Main() { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); FormTable.Register <Form1>(); FormTable.Register <Form2>(); Application.Run(FormTable.Get <Form1>()); }
private void button2_Click(object sender, EventArgs e) { FormTable.Get <Form2>().Show(); }
private void button1_Click(object sender, EventArgs e) { FormTable.Get <Form1>().ChangeTitle("2번 폼에서 제목 변경 & 폼 띄우기"); FormTable.Get <Form1>().Show(); }
private void button1_Click(object sender, EventArgs e) { FormTable.Get <Form2>().label1.Text = "Accessing Form2.label1.Text on Form1"; FormTable.Get <Form2>().Show(); }