public void Refresh() { if (ServerList.selected_serverinfo_textblock == null || ServerList.selected_serverinfo_textblock.serverinfo == null) { return; } cur_root_path = root_path; cur_root_path += ServerList.selected_serverinfo_textblock.serverinfo.name + @"\"; SSHController.GetConfig(cur_root_path); }
public int InitOpenFile() { if (SSHController.ReConnect()) { //if(RemoveConfigFile(CurRootPathLocal) != 0) // return -2; if (SSHController.GetConfig(CurRootPathLocal) == null) { return(-1); } return(0); } return(-3); }
public int InitOpenFile() { if (SSHController.ReConnect()) { int retval = 0; if (RemoveConfigFile(CurRootPathLocal) != 0) { retval = -2; } if (SSHController.GetConfig(CurRootPathLocal) == null) { return(-1); } return(retval); } return(-3); }