public static void OpenWindow()
 {
     if (instance == null)
     {
         instance = (CreateDataWindow)EditorWindow.GetWindow(typeof(CreateDataWindow));
     }
     instance.Show();
 }
    static void OpenWindow()
    {
        Rect             wr     = new Rect(0, 0, 500, 500);
        CreateDataWindow window = (CreateDataWindow)EditorWindow.GetWindowWithRect <CreateDataWindow>(wr, true,
                                                                                                      "创建数据资源");

        window.Show();
    }
 public MainWindow()
 {
     _Reminders.Clear();
     InitializeComponent();
     this.Closing             += MainWindow_Closing;
     ReminderTime.Step         = 10;
     ReminderTime.TimeInterval = new TimeSpan(0, 10, 0);
     ReminderThread            = new Thread(new ThreadStart(ThreadProcess));
     laborCont                   = new LaborControl(this);
     ContentBox.Content          = laborCont;
     ReminderThread.IsBackground = true;
     ReminderThread.Start();
     ReminderView.DataContext = this;
     dataWindow = new CreateDataWindow(this);
     MediaPlayer.LoadedBehavior   = MediaState.Manual;
     MediaPlayer.UnloadedBehavior = MediaState.Manual;
     DisableControls();
 }
 public static void CreateMap()
 {
     CreateDataWindow.OpenWindow();
 }