ui/wpf/UIcore/Window.cs

changeset 135
b9dc9cdfa23a
parent 89
9a7e4a335b2b
child 137
c9b8b9e0cfe8
equal deleted inserted replaced
134:69e8e0936858 135:b9dc9cdfa23a
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 {

mercurial