public MainWindow() { InitializeComponent(); MyWindow1 w = new MyWindow1(); w.Show(); }
static void AddWindow() { //创建窗口 Rect wr = new Rect(0, 0, 500, 500); MyWindow1 window = (MyWindow1)EditorWindow.GetWindowWithRect (typeof(MyWindow1), wr, true, "widow name"); window.Show(); }