protected virtual void OnDialog(object sender, System.EventArgs e) { ConfigDialog dlg = new ConfigDialog(); dlg.Run(); dlg.Destroy(); }
// GUI.Buttons.Configuration protected void ButtonNew(object sender, EventArgs e) { ConfigDialog dialog = new ConfigDialog(); if (dialog.Run() == (int)ResponseType.Ok) { conf = dialog.Configuration; conf.initialized = true; UpdatePerceptron(); } dialog.Destroy(); }
protected void ButtonEdit(object sender, EventArgs e) { if (!hasPerceptron) { return; } ConfigDialog dialog = new ConfigDialog { Configuration = conf }; if (dialog.Run() == (int)ResponseType.Ok) { conf = dialog.Configuration; UpdatePerceptron(); } dialog.Destroy(); }