本文整理汇总了C#中FtpClient.UpLoadRecipe方法的典型用法代码示例。如果您正苦于以下问题:C# FtpClient.UpLoadRecipe方法的具体用法?C# FtpClient.UpLoadRecipe怎么用?C# FtpClient.UpLoadRecipe使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类FtpClient
的用法示例。
在下文中一共展示了FtpClient.UpLoadRecipe方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: Poll
void Poll(object target)
{
DataBaseManage db = new DataBaseManage();
if (!db.SavePreset())
{
TxtData.PublicData.ErrorCode = 1;
return;
}
if (!db.SaveAction())
{
TxtData.PublicData.ErrorCode = 2;
return;
}
if (!db.SaveProduct(CBE_RecipeName.EditValue.ToString()))
{
TxtData.PublicData.ErrorCode = 34;
return;
}
FtpClient ftp = new FtpClient(TxtData.XMLConfigure.IpAddress);
//*******************************************
//匹配tool 2013.10.15
//匹配home
if (!ftp.DownLoadConfigure()||!PublicFunc.ReadCs8CConfigure())
{
TxtData.PublicData.ErrorCode = 43;
return;
}
double[] tool = db.GetTool();
if (tool==null||tool.Length!=6||TxtData.CS8CConfigure.Tool==null||TxtData.CS8CConfigure.Tool.Length!=6)
{
TxtData.PublicData.ErrorCode = 42;
return;
}
for (int i = 0; i < 6;i++)
{
if (tool[i]!=TxtData.CS8CConfigure.Tool[i])
{
TxtData.PublicData.ErrorCode = 42;
return;
}
}
//home
double[] home = db.GetHome();
if (home == null || home.Length != 6 || TxtData.CS8CConfigure.Home== null || TxtData.CS8CConfigure.Home.Length != 6)
{
TxtData.PublicData.ErrorCode = 44;
return;
}
for (int i = 0; i < 6; i++)
{
if (home[i] != TxtData.CS8CConfigure.Home[i])
{
TxtData.PublicData.ErrorCode = 44;
return;
}
}
//**************************************
if (!ftp.UpLoadPreset())
{
TxtData.PublicData.ErrorCode = 21;
return;
}
if (!ftp.UploadAction())
{
TxtData.PublicData.ErrorCode = 22;
return;
}
if (!ftp.UpLoadRecipe())
{
TxtData.PublicData.ErrorCode = 23;
return;
}
if (TxtData.CS8CConfigure.EnableItem[7] || TxtData.CS8CConfigure.EnableItem[6])
{
if (!SoapInstance.SoapRead.SetAppdata("nWorkPlaceIndex", WorkPlace))
{
TxtData.PublicData.ErrorCode = 24;
return;
}
}
if (!SoapInstance.SoapRead.SetAppdata("nInterfaceType", 5))
{
TxtData.PublicData.ErrorCode = 24;
return;
}
db.AddLog("调试产品"+CBE_RecipeName.Text);
while (TxtData.DataBase.InterfaceType == 9)
{
System.Threading.Thread.Sleep(10);
}
TxtData.PublicData.ErrorCode = 40;
//.........这里部分代码省略.........