public MainWindow() { InitializeComponent(); priceMin = 0; priceMax = 300; marginBottom = 32; Util = new GatherUtil(); }
private void MenuFileOpenClick(object sender, RoutedEventArgs e) { var dlg = new OpenFileDialog { DefaultExt = ".eg", Filter = "Encog EG Files (.EG)|*.eg" }; bool?result = dlg.ShowDialog(); if (result != true) { return; } var inf = new FileInfo(dlg.FileName); if (inf.Directory != null) { BasicNetwork tempn = NetworkUtility.LoadNetwork(inf.Directory.ToString(), dlg.FileName); Network = tempn; } if (Network == null) { MessageBox.Show("This does not appear to be an EG file created for this example."); return; } Util = new GatherUtil(); var xpa = new ParamsHolder(Network.Properties); Util.EvalWindow = xpa.GetInt("eval", true, 1); Util.PredictWindow = xpa.GetInt("predict", true, 1); Util.EvalWindow = xpa.GetInt("eval", true, 1); Util.PredictWindow = xpa.GetInt("predict", true, 1); }
private void MenuFileOpen_Click(object sender, RoutedEventArgs e) { OpenFileDialog dlg = new OpenFileDialog(); dlg.DefaultExt = ".eg"; // Default file extension dlg.Filter = "Encog EG Files (.EG)|*.eg"; // Filter files by extension Nullable<bool> result = dlg.ShowDialog(); if (result == true) { FileInfo inf = new FileInfo(dlg.FileName); if (inf.Directory != null) { var tempn= Encog.Util.NetworkUtil.NetworkUtility.LoadNetwork(inf.Directory.ToString(), dlg.FileName); Network = tempn; } if (Network == null) { MessageBox.Show("This does not appear to be an EG file created for this example."); return; } this.Util = new GatherUtil(); ParamsHolder xpa = new ParamsHolder(Network.Properties); this.Util.EvalWindow = xpa.GetInt("eval", true, 1); this.Util.PredictWindow = xpa.GetInt("predict", true, 1); this.Util.EvalWindow = xpa.GetInt("eval", true, 1); this.Util.PredictWindow = xpa.GetInt("predict", true, 1); // this.Util.EvalWindow = Convert.ToInt16(Network.Properties["eval"]); } }
public MainWindow() { InitializeComponent(); this.priceMin = 0; this.priceMax = 300; this.marginBottom = 32; Util = new GatherUtil(); }