提交 0f985015 编写于 作者: yqian1000's avatar yqian1000

修复卡表文件错误

上级 c19d5ef4
......@@ -94,7 +94,7 @@ namespace DeckLogExcel
/// 复制一个Excel到指定目录
/// </summary>
/// <param name="curPath"></param>
public void CreateReFile(string curPath)
virtual public void CreateReFile(string curPath)
{
if (File.Exists(curPath)) File.Delete(curPath);
File.Copy(ConstantValue.ReExcel, curPath);
......
......@@ -17,7 +17,7 @@ namespace DeckLogExcel
public override void DoWirte()
{
string curPath = $"{folder}/WS.xlsx";
CreateReFile(curPath);
CreateWSFile(curPath);
ExcelHelper excel = new ExcelHelper(curPath);
int counter = 0;
List<Card> cards = deck.GetDeck();
......@@ -34,5 +34,13 @@ namespace DeckLogExcel
excel.Dispose();
MessageBox.Show($"共有{counter}张卡,卡表输出到:{curPath}");
}
public void CreateWSFile(string curPath)
{
if (File.Exists(curPath)) File.Delete(curPath);
File.Copy(ConstantValue.WSExcel, curPath);
}
}
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册