private void _btOk_Click(object sender, System.EventArgs e) { if (_controller != null) { if (_controller.Apply()) { DialogResult = DialogResult.OK; Close(); } } }
private void EhOk(object sender, RoutedEventArgs e) { if (_backgroundCancelControl.ExecutionInProgress) { return; } if (_controller != null) { if (_controller.Apply(true)) { _backgroundCancelControl.StartExecution(_controller.Execute, 1000); } } }
public bool Apply(bool disposeController) { if (_scriptController.Apply(disposeController)) { m_TempScript = (IFitFunctionScriptText)_scriptController.ModelObject; m_Script.CopyFrom(m_TempScript, false); m_TempScript = (IFitFunctionScriptText)m_Script.CloneForModification(); return(true); } else { return(false); } }