Пример #1
0
        static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);

            FormTable.Register <Form1>();
            FormTable.Register <Form2>();

            Application.Run(FormTable.Get <Form1>());
        }
Пример #2
0
 private void button2_Click(object sender, EventArgs e)
 {
     FormTable.Get <Form2>().Show();
 }
Пример #3
0
 private void button1_Click(object sender, EventArgs e)
 {
     FormTable.Get <Form1>().ChangeTitle("2번 폼에서 제목 변경 & 폼 띄우기");
     FormTable.Get <Form1>().Show();
 }
Пример #4
0
 private void button1_Click(object sender, EventArgs e)
 {
     FormTable.Get <Form2>().label1.Text = "Accessing Form2.label1.Text on Form1";
     FormTable.Get <Form2>().Show();
 }