|
|
|
@ -0,0 +1,63 @@
|
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.Linq;
|
|
|
|
|
using System.Text;
|
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
using WpfApp1.WinOcr;
|
|
|
|
|
using WpfApp1.ScnToJson;
|
|
|
|
|
using WpfApp1.translationKey;
|
|
|
|
|
|
|
|
|
|
namespace testRjgc
|
|
|
|
|
{
|
|
|
|
|
internal class AllClassAndInterfaceWellBeManipulatedInThisFileAndCallThroughFunction
|
|
|
|
|
{
|
|
|
|
|
AllClassAndInterfaceWellBeManipulatedInThisFileAndCallThroughFunction() { }
|
|
|
|
|
|
|
|
|
|
public void InputPrivate(string name, string id, string key)
|
|
|
|
|
{
|
|
|
|
|
TranslationPrivateIn tr = new TranslationPrivateIn();
|
|
|
|
|
tr.InputTranslationPrivate(name, id, key);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public List<string> OutputNameList(string id)
|
|
|
|
|
{
|
|
|
|
|
TranslationApiStr tr = new translationPrivateOut();
|
|
|
|
|
List<string> list = tr.OutputTranslationNameList();
|
|
|
|
|
return list;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public List<string> OutputStr(string id)
|
|
|
|
|
{
|
|
|
|
|
TranslationApiStr str = new translationPrivateOut();
|
|
|
|
|
List<string> li = str.OutputTranslationS(id);
|
|
|
|
|
return li;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public List<string> OutputPub(int id)
|
|
|
|
|
{
|
|
|
|
|
TranslationApiInt sin = new translationPublic();
|
|
|
|
|
List<string> li = sin.OutputTranslationI(id);
|
|
|
|
|
return li;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public void StartSCNTransJSON()
|
|
|
|
|
{
|
|
|
|
|
TranslationScnToJson scn = new TranslationScnToJson();
|
|
|
|
|
scn.StartTrans();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public void StartTransOneself(string spa, string dps)
|
|
|
|
|
{
|
|
|
|
|
TranslationScnToJson scn = new TranslationScnToJson();
|
|
|
|
|
scn.StopTrans(spa, dps);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public string WindowsOcrToGetString(string name)
|
|
|
|
|
{
|
|
|
|
|
Sofia so = new OcrSofia();
|
|
|
|
|
string temp = so.WindowsOcrToGetStringAndTranslate(name);
|
|
|
|
|
return temp;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
}
|