public Form1() { InitializeComponent(); ImplementAdapter.Register(this); //test_clone(); getData(); int a1 = calculate.Division(1, 0); CalculateImpl calculateImpl = calculate.GetSourceInstance <CalculateImpl>(); //virtualMethod.say(); button1.Click += Button1_Click; button2.Click += Button2_Click; this.Closed += Form1_Closed; }