value 相关的问题
value 0; value -1 到底什么含义if (saveFileDialog.ShowDialog() == DialogResult.OK)
{
if (saveFileDialog.FileName != "")
{
if (File.Exists(saveFileDialog.FileName) == true)
{
MessageBox.Show("目标数据文件已存在.\n禁止覆盖已有数据文件,请修改路径或文件名后再试.",
Application.ProductName,
MessageBoxButtons.OK,
MessageBoxIcon.Warning);
return -1;
}
File.Copy(Application.StartupPath + @"\Data\" + m_strDataBaseName,
saveFileDialog.FileName);
return 0;
}
else
{
return -1;
}
}
else
{
return -1;
}
}
--------------------编程问答-------------------- 0就是操作成功 -1就是操作失败吧 --------------------编程问答-------------------- 就你的代码而言
0:true
-1:false
补充:.NET技术 , C#