private void button1_Click_1(object sender, EventArgs e) { ScriptTreeView.Nodes.Clear(); ScriptTreeManager.ReadWorldInfo(); ScriptTreeManager.AddtoTreeView(ScriptTreeView.Nodes); ScriptTreeView.ExpandAll(); }
private void button1_Click(object sender, EventArgs e) { FolderBrowserDialog FBDialog = new FolderBrowserDialog(); FBDialog.ShowNewFolderButton = false; FBDialog.Description = "Select svn resources folder.."; FBDialog.ShowDialog(); if (true == ScriptTreeManager.SetResourceDir(FBDialog.SelectedPath)) { ScriptTreeView.Nodes.Clear(); ScriptTreeManager.ReadWorldInfo(); ScriptTreeManager.AddtoTreeView(ScriptTreeView.Nodes); ScriptTreeView.ExpandAll(); } }
public Form1() { InitializeComponent(); try { ScriptTreeView.Nodes.Clear(); ScriptTreeManager.ReadWorldInfo(); ScriptTreeManager.AddtoTreeView(ScriptTreeView.Nodes); ScriptTreeView.ExpandAll(); } catch (Exception e) { MessageBox.Show("Default Path Open Failed : " + e.Message); } }