Commit f18413f0 authored by JoyJ's avatar JoyJ

code format

parent 4582ac87
......@@ -76,6 +76,7 @@ public Card[] CardList
public TaskHelper(string datapath, BackgroundWorker worker, MSEConfig mcfg)
{
this.Datapath = datapath;
this.worker = worker;
this.mseHelper = new MseMaker(mcfg);
this.imgSet = new ImageSet();
......@@ -97,12 +98,12 @@ public void Cancel()
this.isRun = false;
this.isCancel = true;
}
public MyTask getLastTask()
public MyTask GetLastTask()
{
return this.lastTask;
}
public void testPendulumText(string desc){
public void TestPendulumText(string desc){
this.mseHelper.TestPendulum(desc);
}
#endregion
......@@ -277,6 +278,9 @@ public string MSEImagePath
{
get { return this.mseHelper.ImagePath; }
}
public string Datapath { get; }
public void SaveMSEs(string file, Card[] cards,bool isUpdate)
{
if(cards == null)
......
......@@ -1352,7 +1352,7 @@ void BgWorker1RunWorkerCompleted(object sender, System.ComponentModel.RunWorkerC
}
else
{
MyTask mt = this.tasker.getLastTask();
MyTask mt = this.tasker.GetLastTask();
switch (mt)
{
case MyTask.CheckUpdate:
......@@ -2079,7 +2079,7 @@ void Menuitem_testPendulumTextClick(object sender, EventArgs e)
{
Card c = this.GetCard();
if(c != null){
this.tasker.testPendulumText(c.desc);
this.tasker.TestPendulumText(c.desc);
}
}
void Menuitem_export_select_sqlClick(object sender, EventArgs e)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment