Exemplo n.º 1
0
        private void btnConfig_Click(object sender, EventArgs e)
        {
            var cfgFrm = new configForm(_job.Config);

            if (cfgFrm.ShowDialog(this) == DialogResult.OK)
            {
                _job.Config = cfgFrm.Config;
            }
        }
Exemplo n.º 2
0
        private void btnConfig_Click()
        {
            configForm cf     = new configForm(Analyser.Config);
            var        result = cf.ShowDialog(this);

            if (result == DialogResult.OK)
            {
                Analyser.Config       = cf.Config;
                Analyser.Config.Paths = null;
                Analyser.Config.Save(Config.DefaultFileName);
                ControlState(btnOpen.Enabled);//update enabled button
            }
        }