private void ShowFunctionWindow() { if (string.IsNullOrEmpty(SelectedFunction)) { MessageBox.Show("Please choose function type"); return; } FunctionSelectionVm = new FunctionSelectionVM(SelectedFunction, 0, 1, this); _window = new FunctionSelectionWindow() { DataContext = FunctionSelectionVm }; _window.Show(); }
private void OnDetails() { if (QuantifierSelected == null) { MessageBox.Show("Please choose summarizer"); return; } try { FunctionSelectionVm = new FunctionSelectionVM(QuantifierSelected.FuzzySet.MembershipFunction, 0, 1); _window = new FunctionSelectionWindow() { DataContext = FunctionSelectionVm }; _window.Show(); } catch (Exception e) { MessageBox.Show(e.Message); } }
private void ShowFunctionWindow() { if (string.IsNullOrEmpty(SelectedFunction)) { MessageBox.Show("Please choose function type"); return; } try { FunctionSelectionVm = new FunctionSelectionVM(SelectedFunction, AttributeSelected.Min, AttributeSelected.Max, this); _window = new FunctionSelectionWindow() { DataContext = FunctionSelectionVm }; _window.Show(); } catch (Exception e) { MessageBox.Show(e.Message); } }