/// <summary>
    /// 结束设备编辑时,显示的界面
    /// </summary>
    private void ShowUiOnDevEditEnd()
    {
        ActionBarManage manage = ActionBarManage.Instance;

        if (manage)
        {
            if (manage.CurrentState == ViewState.设备定位 || manage.CurrentState == ViewState.None)
            {
                bool isDevState = ActionBarManage.Instance.DevToggle.isOn;
                if (TopoTreeManager.Instance && isDevState)
                {
                    TopoTreeManager.Instance.ShowWindow();
                }
            }
            if (manage.CurrentState == ViewState.人员定位 && manage.PersonnelToggle.isOn)
            {
                if (PersonnelTreeManage.Instance)
                {
                    PersonnelTreeManage.Instance.ShowWindow();
                }
            }
        }
        if (SmallMapController.Instance)
        {
            SmallMapController.Instance.Show();
        }
        if (StartOutManage.Instance)
        {
            StartOutManage.Instance.SetMainPageAndBackState(true);
        }
    }
Ejemplo n.º 2
0
    /// <summary>
    /// 显示人员定位
    /// </summary>
    private void ShowLocation()
    {
        ActionBarManage menu = ActionBarManage.Instance;

        if (menu && menu.PersonnelToggle.isOn)
        {
            menu.ShowLocation();
        }
    }
 private void Awake()
 {
     Instance     = this;
     currentState = ViewState.人员定位;
 }