private void momentumPaarallelToolStripMenuItem_Click(object sender, EventArgs e) { MomentumDialog adam = new MomentumDialog(); if (adam.ShowDialog() == DialogResult.OK) { NetworkData.optimizer = adam.opt; } }
private void button4_Click(object sender, EventArgs e) { if (pretrain_task != null) { pretrain_task.Wait(); } MomentumDialog mm = new MomentumDialog(); if (mm.ShowDialog() == DialogResult.OK) { opt = mm.opt; } }