StonehearthEditor.ManifestView.Reload C# (CSharp) Method

Reload() public method

public Reload ( ) : void
return void
        public void Reload()
        {
            // Reload the manifest tab.
            Initialize();
            if (searchBox.Text == "error" && !ModuleDataManager.GetInstance().HasErrors)
            {
                searchBox.Text = "";
            }

            searchButton.PerformClick();

            if (Properties.Settings.Default.LastSelectedManifestPath != null)
            {
                FileData file = ModuleDataManager.GetInstance().GetSelectedFileData(Properties.Settings.Default.LastSelectedManifestPath);
                if (file != null && file.TreeNode != null)
                {
                    treeView.SelectedNode = file.TreeNode;
                }
            }
            else
            {
                SetSelectedFileData(null);
            }

            if (searchBox.Text == "")
            {
                searchBox.BackColor = SystemColors.Window;
            }
        }

Usage Example

Exemplo n.º 1
0
            public bool OnAccept(HashSet <string> unwantedItems)
            {
                if (ModuleDataManager.GetInstance().ExecuteClone(mFileData, mParameters, unwantedItems))
                {
                    mViewer.Reload();
                }

                return(true);
            }
All Usage Examples Of StonehearthEditor.ManifestView::Reload