Example #1
0
        private void UserDataWorker_DoWork(object sender, DoWorkEventArgs e)
        {
            CreateDefaultTable();
            GetDatabaseData();

            if (SavesManager.GetSavesFolder().Count == 0)
            {
                SavesManager.CreatSavesFolder();
            }
            UI.SaveFolders_Local = SavesManager.GetSavesFolder();

            foreach (var item in ServersManager.GetExistProcess())
            {
                textBox_Servers_Tab_Log.Text += item + "\r\n";
            }
        }
        private void ConnectWorker_DoWork(object sender, DoWorkEventArgs passValue)
        {
            object[] argument = (object[])passValue.Argument;

            ServerConnect serverConnect = argument[0] as ServerConnect;
            SftpClient    client        = serverConnect.GetSftpClient;

            serverConnect.StartConnect();
            m_ServerConnect.Add(serverConnect);

            if (SavesManager.GetSavesFolder(client).Count == 0)
            {
                SavesManager.CreatSavesFolder(client);
            }
            UI.SaveFolders_Cloud = SavesManager.GetSavesFolder(client);

            passValue.Result = new object[] { serverConnect };
        }