Load() public method

public Load ( Data _serverData, MinecraftServerManager.Controls.Tabs tabs ) : void
_serverData Data
tabs MinecraftServerManager.Controls.Tabs
return void
 private void openMenu_Click(object sender, EventArgs e)
 {
     if (base.SelectedNode is FileNode)
     {
         FileNode   i  = (FileNode)base.SelectedNode;
         TextEditor te = new TextEditor();
         te.Load(i.GetFile(), this.tabs);
     }
     else if (base.SelectedNode is RemoteFileNode)
     {
         RemoteFileNode i  = (RemoteFileNode)base.SelectedNode;
         TextEditor     te = new TextEditor();
         te.Load(i, this.tabs);
     }
     else if (base.SelectedNode is ConsoleNode)
     {
         ConsoleNode node    = (ConsoleNode)base.SelectedNode;
         Console     console = new Console();
         console.Load(node.Parent.GetServerData(), this.tabs);
     }
     else if (base.SelectedNode is RemoteConsoleNode)
     {
         RemoteConsoleNode node    = (RemoteConsoleNode)base.SelectedNode;
         RemoteConsole     console = new RemoteConsole();
         console.Load(node.Parent.data, node.Parent.GetServerData().name, this.tabs);
     }
     else if (base.SelectedNode is PropertiesNode)
     {
         PropertiesNode   node   = (PropertiesNode)base.SelectedNode;
         PropertiesEditor editor = new PropertiesEditor();
         editor.Load(this.tabs);
     }
 }
 private void openMenu_Click(object sender, EventArgs e)
 {
     if (base.SelectedNode is FileNode)
     {
         FileNode i = (FileNode)base.SelectedNode;
         TextEditor te = new TextEditor();
         te.Load(i.GetFile(), this.tabs);
     }
     else if (base.SelectedNode is RemoteFileNode)
     {
         RemoteFileNode i = (RemoteFileNode)base.SelectedNode;
         TextEditor te = new TextEditor();
         te.Load(i, this.tabs);
     }
     else if (base.SelectedNode is ConsoleNode)
     {
         ConsoleNode node = (ConsoleNode)base.SelectedNode;
         Console console = new Console();
         console.Load(node.Parent.GetServerData(), this.tabs);
     }
     else if (base.SelectedNode is RemoteConsoleNode)
     {
         RemoteConsoleNode node = (RemoteConsoleNode)base.SelectedNode;
         RemoteConsole console = new RemoteConsole();
         console.Load(node.Parent.data, node.Parent.GetServerData().name, this.tabs);
     } else if (base.SelectedNode is PropertiesNode)
     {
         PropertiesNode node = (PropertiesNode)base.SelectedNode;
         PropertiesEditor editor = new PropertiesEditor();
         editor.Load(this.tabs);
     }
 }