public bool SaveData()
        {
            try
            {
                if (!hasConfigFile)
                {
                    return(false);
                }
                string configPath = Path.Combine(Path.GetDirectoryName(path), "DataTranNewGUI.exe");

                AppConfigurator.UpdateAppSettingsConfig("SliceCount", txtSliceCount.Text, configPath);
                AppConfigurator.UpdateAppSettingsConfig("SliceTime", txtSliceTime.Text, configPath);
                AppConfigurator.UpdateAppSettingsConfig("ServerIP", textServerIp.Text, configPath);
                AppConfigurator.UpdateAppSettingsConfig("ServerPort", txtServerPort.Text, configPath);
                AppConfigurator.UpdateAppSettingsConfig("BasePath", txtBasePath.Text, configPath);
                AppConfigurator.UpdateAppSettingsConfig("MonBasePath", txtMonBasePath.Text, configPath);
                AppConfigurator.UpdateAppSettingsConfig("FTPHost", txtFTPHost.Text, configPath);
                AppConfigurator.UpdateAppSettingsConfig("FTPPort", txtFTPPort.Text, configPath);
                AppConfigurator.UpdateAppSettingsConfig("FTPUserName", txtFTPUserName.Text, configPath);
                AppConfigurator.UpdateAppSettingsConfig("FTPPwd", txtFTPPwd.Text, configPath);
                return(true);
            }
            catch
            {
                return(false);
            }
        }