protected virtual void OnDialog(object sender, System.EventArgs e)
    {
        ConfigDialog dlg = new ConfigDialog();

        dlg.Run();
        dlg.Destroy();
    }
Exemple #2
0
    // 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();
    }
Exemple #3
0
    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();
    }