private void ResetModle(string leftRoot, string rightRoot) { if (fileList == null || fileList.Count() == 0) { return; } // end if statusLabel.Text = "就绪"; svnListBox1.Clear(); SetSvnStatus(Global.LoadSvnLog); statusStrip1.Items[1].Visible = false; statusStrip1.Items[2].Visible = false; statusStrip1.Items[5].Visible = false; statusStrip1.Items[6].Visible = false; statusStrip1.Items[9].Visible = false; statusStrip1.Items[10].Visible = false; UnBindProgressEvent(); if (treeModle != null) { treeModle.Dispose(); } // end if if (svnListModle != null) { svnListModle.Dispose(); } // end if treeModle = new SvnViewModel(leftRoot, rightRoot); treeModle.RefreshListView(fileList); svnListModle = new SvnListModel(leftRoot, rightRoot); svnListModle.ToLoad = Global.LoadSvnLog; BindProgressEvent(); treeViewAdv1.Model = treeModle; svnListBox1.Model = svnListModle; } // end ResetModle
private void ResetModle(string leftRoot, string rightRoot) { statusLabel.Text = "就绪"; SetSvnStatus(Global.LoadSvnLog); statusStrip1.Items[1].Visible = false; statusStrip1.Items[2].Visible = false; statusStrip1.Items[5].Visible = false; statusStrip1.Items[6].Visible = false; statusStrip1.Items[9].Visible = false; statusStrip1.Items[10].Visible = false; UnBindProgressEvent(); if (treeModle != null) { treeModle.Dispose(); } // end if if (svnListModle != null) { svnListModle.Dispose(); } // end if treeModle = new TreeModel(leftRoot, rightRoot); svnListModle = new SvnListModel(leftRoot, rightRoot); svnListModle.ToLoad = Global.LoadSvnLog; BindProgressEvent(); treeViewAdv1.Model = treeModle; svnListBox1.Model = svnListModle; } // end ResetModle