コード例 #1
0
        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);
        }
コード例 #2
0
        public int InitOpenFile()
        {
            if (SSHController.ReConnect())
            {
                //if(RemoveConfigFile(CurRootPathLocal) != 0)
                //	return -2;

                if (SSHController.GetConfig(CurRootPathLocal) == null)
                {
                    return(-1);
                }

                return(0);
            }
            return(-3);
        }
コード例 #3
0
        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);
        }