Browser.AddPath C# (CSharp) Method

AddPath() public method

public AddPath ( String add, int indexOfAdd ) : void
add String
indexOfAdd int
return void
    void AddPath(String add, int indexOfAdd)
    {
        String[] Temp = new String[indexOfAdd+1];
        for(int i=0; i<indexOfAdd; ++i) Temp[i] = OpenPaths[i];
        Temp[Temp.Length-1] = add;
        OpenPaths = Temp;

        Temp = new String[indexOfAdd+1];
        for(int i=0; i<indexOfAdd; ++i) Temp[i] = OpenPaths_Reduced[i];
        Temp[Temp.Length-1] = (new DirectoryInfo(add)).Name;
        OpenPaths_Reduced = Temp;

        WindowName = ""; // Get the Name of the window.
        for(int i=0; i<OpenPaths_Reduced.Length; ++i) WindowName += "/"+OpenPaths_Reduced[i];
    }