83 Container = vbox; |
83 Container = vbox; |
84 |
84 |
85 Closed += CloseEvent; |
85 Closed += CloseEvent; |
86 } |
86 } |
87 |
87 |
88 public static MainWindow CreateMainWindow(String title, IntPtr uiobj) |
|
89 { |
|
90 return Application.GetInstance().Exec<MainWindow>(() => new MainWindow(title, uiobj)); |
|
91 } |
|
92 |
|
93 public void ShowWindow() |
88 public void ShowWindow() |
94 { |
89 { |
95 Application.GetInstance().Exec(() => this.Show()); |
90 this.Show(); |
96 Application.GetInstance().AddWindow(this); |
91 Application.GetInstance().AddWindow(this); |
97 } |
92 } |
98 |
93 |
99 public void CloseEvent(object sender, System.EventArgs e) |
94 public void CloseEvent(object sender, System.EventArgs e) |
100 { |
95 { |