public SignaturesGuessForm(IGuessSignature guess, TableAdapterManager table_adapter, List<SignatureCounterDataSet.SignatureRow> target) { InitializeComponent(); this.guess = guess; this.tables = table_adapter; this.target_signature = target; }
bool LoadModel() { toolStripStatus.Text = "Loading Model Data."; Refresh(); guess = new GuessSignatureEvalEasy(); String model_data = Path.ChangeExtension(model_file_name_wo_suffix, guess.ModelFileSuffix); if (File.Exists(model_data)) { try { guess.LoadModel(model_data); } catch (Exception e) { MessageBox.Show("Unable to load model data." + e.Message); toolStripStatus.Text = null; guess = null; return false; } toolStripStatus.Text = "Model Data is loaded."; Refresh(); } return true; }