public void Branch() { TasBranch branch = CreateBranch(); Movie.NewBranchText = ""; // reset every time it's used Movie.AddBranch(branch); BranchView.RowCount = Movie.BranchCount; Movie.CurrentBranch = Movie.BranchCount - 1; BranchView.ScrollToIndex(Movie.CurrentBranch); BranchView.Refresh(); Tastudio.RefreshDialog(); }