コード例 #1
0
        public void ChooseUnit()
        {
            if (_view.type != "company")
            {
                if (_view.currentUnit == null)
                {
                    _view.ShowErrorMessage("Choose unit from the list!");
                    return;
                }
                _unit = _view.currentUnit;
            }
            else
            {
                _unit = _company;
            }
            if (_unit.Type == 3)
            {
                _view.ForbidCreate();
            }
            string title = _view.type + " " + _unit.ToString();

            _view.ShowTitle(title);
        }