示例#1
0
	void CreateGuiSectionObjects()
	{
		if( AddItemGui == null )
		{
			AddItemGui = new TodoListAddItem( this );
		}

		if( ConnectionGui == null )
		{
			ConnectionGui = new TodoListConnection( this );
		}

		if( ViewGui == null )
		{
			ViewGui = new TodoListView( this );
		}

		if( StatisticsGui == null )
		{
			StatisticsGui = new TodoListStatistics( this );
		}

		if( AboutGui == null )
		{
			AboutGui = new TodoListAbout( this );
		}

		if( SettingsGui == null )
		{
			SettingsGui = new TodoListSettings( this );
		}

		if( SprintsGui == null )
		{
			SprintsGui = new TodoListSprints( this );
		}
	}
示例#2
0
    public void UpdateSettings( TodoListSettings settings)
    {
        _settings = settings;

        taskselection = new string[_settings.users.Count + 1];
        taskselection[0] = "All Tasks";
        _userSelection = new string[_settings.users.Count];

        for(int i = 0; i < _settings.users.Count; i++)
        {
            taskselection[i+1] = _settings.users[i].name;
            _userSelection[i] = _settings.users[i].name;
        }
    }