Exemple #1
0
        public MainWindow()
        {
            InitializeComponent();
            MyWindow1 w = new MyWindow1();

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

        window.Show();
    }