public DialogWindow(DialogWindowsState dialogWindowsState, DialogWindowsMessage dialogWindowsMessage)
 {
     InitializeComponent();
     SetComponents(dialogWindowsState);
     SetMessageContent(dialogWindowsMessage);
     this.dialogWindowsMessage = dialogWindowsMessage;
 }
        private void SetComponents(DialogWindowsState dialogWindowsState)
        {
            switch (dialogWindowsState)
            {
            case DialogWindowsState.YesCancel:
                acceptButton.Visibility = System.Windows.Visibility.Visible;
                cancelButton.Visibility = System.Windows.Visibility.Visible;
                okButton.Visibility     = System.Windows.Visibility.Hidden;
                break;

            case DialogWindowsState.Ok:
                acceptButton.Visibility = System.Windows.Visibility.Hidden;
                cancelButton.Visibility = System.Windows.Visibility.Hidden;
                okButton.Visibility     = System.Windows.Visibility.Visible;
                break;
            }
        }