Commit f18413f0 authored by JoyJ's avatar JoyJ

code format

parent 4582ac87
...@@ -76,6 +76,7 @@ public Card[] CardList ...@@ -76,6 +76,7 @@ public Card[] CardList
public TaskHelper(string datapath, BackgroundWorker worker, MSEConfig mcfg) public TaskHelper(string datapath, BackgroundWorker worker, MSEConfig mcfg)
{ {
this.Datapath = datapath;
this.worker = worker; this.worker = worker;
this.mseHelper = new MseMaker(mcfg); this.mseHelper = new MseMaker(mcfg);
this.imgSet = new ImageSet(); this.imgSet = new ImageSet();
...@@ -97,12 +98,12 @@ public void Cancel() ...@@ -97,12 +98,12 @@ public void Cancel()
this.isRun = false; this.isRun = false;
this.isCancel = true; this.isCancel = true;
} }
public MyTask getLastTask() public MyTask GetLastTask()
{ {
return this.lastTask; return this.lastTask;
} }
public void testPendulumText(string desc){ public void TestPendulumText(string desc){
this.mseHelper.TestPendulum(desc); this.mseHelper.TestPendulum(desc);
} }
#endregion #endregion
...@@ -277,6 +278,9 @@ public string MSEImagePath ...@@ -277,6 +278,9 @@ public string MSEImagePath
{ {
get { return this.mseHelper.ImagePath; } get { return this.mseHelper.ImagePath; }
} }
public string Datapath { get; }
public void SaveMSEs(string file, Card[] cards,bool isUpdate) public void SaveMSEs(string file, Card[] cards,bool isUpdate)
{ {
if(cards == null) if(cards == null)
......
...@@ -1352,7 +1352,7 @@ void BgWorker1RunWorkerCompleted(object sender, System.ComponentModel.RunWorkerC ...@@ -1352,7 +1352,7 @@ void BgWorker1RunWorkerCompleted(object sender, System.ComponentModel.RunWorkerC
} }
else else
{ {
MyTask mt = this.tasker.getLastTask(); MyTask mt = this.tasker.GetLastTask();
switch (mt) switch (mt)
{ {
case MyTask.CheckUpdate: case MyTask.CheckUpdate:
...@@ -2079,7 +2079,7 @@ void Menuitem_testPendulumTextClick(object sender, EventArgs e) ...@@ -2079,7 +2079,7 @@ void Menuitem_testPendulumTextClick(object sender, EventArgs e)
{ {
Card c = this.GetCard(); Card c = this.GetCard();
if(c != null){ if(c != null){
this.tasker.testPendulumText(c.desc); this.tasker.TestPendulumText(c.desc);
} }
} }
void Menuitem_export_select_sqlClick(object sender, EventArgs e) 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