public ShapeNet() { InitializeComponent(); pbVertical.Vertical = true; pbStrokeVertical.Vertical = true; m_OCR = new OCR.OCR(); m_UserSettings = OCRStub.Window1.m_UserSettings; m_UserSettings.AddControl(this, txtSample); m_UserSettings.AddControl(this, txtThinningSample); m_UserSettings.AddControl(this, txtNodesLayer1); m_UserSettings.AddControl(this, txtNodesLayer2); m_UserSettings.AddControl(this, txtRepetitions); m_UserSettings.AddControl(this, tabShapeNetFunctions); m_UserSettings.AddControl(this, ThinningAlgorithm); m_UserSettings.AddControl(this, lstNeuralNetworks); m_UserSettings.AddControl(this, txtWordListSource); m_UserSettings.AddControl(this, txtWord); }
/// <summary> /// Constructor of the main window /// </summary> public Window1() { m_OCR = new OCR.OCR(); //m_UserSettings = new UserSettings(); //m_UserSettings.m_filename = "d:\\ocr\\settings.xml"; m_UserSettings = UserSettings.Load("d:\\ocr\\settings.xml"); InitializeComponent(); sldThreadCount.Maximum = System.Environment.ProcessorCount; m_UserSettings.AddControl(this, sldThreadCount); m_UserSettings.AddControl(this, txtTraceFeatureFolder); m_UserSettings.AddControl(this, txtImageFile); m_UserSettings.AddControl(this, chkDebug); m_UserSettings.AddControl(this, chkDrawComponents); m_UserSettings.AddControl(this, chkDrawSentenceBox); m_UserSettings.AddControl(this, chkDrawSentenceLine); m_UserSettings.AddControl(this, chkTraceFeatures); m_UserSettings.AddControl(this, chkApplySplitConnected); m_UserSettings.AddControl(this, chkApplyWordList); }