private void ShowRemovePinDialog(Action <bool> dialogResultCont) { DialogBox removePinDialog = new DialogBox("Remove Report", "Are you sure you want to remove this report?", "Yes", "No", false); removePinDialog.Owner = m_currentWindow; m_currentWindow.DisableInput(); m_currentWindow.SetOpacity(MainWindow.OpacityOnPopup); removePinDialog.ShowWithParentControl(this, (sender, ev, okClicked) => { m_currentWindow.EnableInput(); m_currentWindow.SetOpacity(1.0f); dialogResultCont(okClicked); }); }
private bool ShowRemovePinDialog() { DialogBox dialogBox = new DialogBox("Remove Pin", "Are you sure you want to remove this pin?", "Yes", "No"); dialogBox.Owner = m_currentWindow; m_currentWindow.SetOpacity(MainWindow.OpacityOnPopup); bool?result = dialogBox.ShowDialog(); m_currentWindow.SetOpacity(1.0f); if (result == null) { return(false); } return((bool)result); }
private void OnClick(object sender, System.Windows.Input.MouseButtonEventArgs e) { DialogBox dialogBox = new DialogBox(m_popupTitle, m_popupBody, "Find Out More", "Later"); dialogBox.Owner = m_currentWindow; m_currentWindow.SetOpacity(MainWindow.OpacityOnPopup); bool?result = dialogBox.ShowDialog(); m_currentWindow.SetOpacity(1.0f); WatermarkCLI.OnSelected(m_nativeCallerPointer); if (result != null && result == true) { Process.Start(new ProcessStartInfo(m_webUrl)); } }
private void EnableMainWindow() { m_currentWindow.SetOpacity(1.0f); m_currentWindow.EnableInput(); }