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

        window.Show();
    }
Пример #3
0
 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();
 }
Пример #4
0
 public static void CreateMap()
 {
     CreateDataWindow.OpenWindow();
 }