SessionLoadWindow.getStore C# (CSharp) Method

getStore() private method

private getStore ( bool showContacts, bool showEncoder ) : TreeStore
showContacts bool
showEncoder bool
return TreeStore
    private TreeStore getStore(bool showContacts, bool showEncoder)
    {
        TreeStore s;
        if(showContacts && showEncoder)
            s = new TreeStore(
                typeof (string), typeof (string), typeof (string), typeof (string), //number, name, place, date
                typeof (string), typeof (string), typeof (string), typeof (string), //persons, sport, spllity, level
                typeof (string), typeof (string), typeof (string), typeof(string), //jumps s,r, runs s, i,
                typeof (string), typeof (string), typeof (string), 	//rt, pulses, mc
                typeof (string), typeof (string), 			//encoder s, c
                typeof (string)						//comments
                   	);
        else if(showContacts && ! showEncoder)
            s = new TreeStore(
                typeof (string), typeof (string), typeof (string), typeof (string), //number, name, place, date
                typeof (string), typeof (string), typeof (string), typeof (string), //persons, sport, spllity, level
                typeof (string), typeof (string), typeof (string), typeof(string), //jumps s,r, runs s, i,
                typeof (string), typeof (string), typeof (string), 	//rt, pulses, mc
                typeof (string)						//comments
                   	);
        else if(! showContacts && showEncoder)
            s = new TreeStore(
                typeof (string), typeof (string), typeof (string), typeof (string), //number, name, place, date
                typeof (string), typeof (string), typeof (string), typeof (string), //persons, sport, spllity, level
                typeof (string), typeof (string), 			//encoder s, c
                typeof (string)						//comments
                   	);
        else // ! showContacts && ! showEncoder
            s = new TreeStore(
                typeof (string), typeof (string), typeof (string), typeof (string), //number, name, place, date
                typeof (string), typeof (string), typeof (string), typeof (string), //persons, sport, spllity, level
                typeof (string)						//comments
                   	);
        return s;
    }