         self.addSubview(self.dialogView!)
     }
 
-    /* Handle device orientation changes */
+    /// Handle device orientation changes
     func deviceOrientationDidChange(notification: NSNotification) {
         self.frame = CGRect(x: 0, y: 0, width: UIScreen.main.bounds.size.width, height: UIScreen.main.bounds.size.height)
         let screenSize = countScreenSize()

        self.datePicker.maximumDate = maximumDate
        self.datePicker.minimumDate = minimumDate

        /* */
        guard let appDelegate = UIApplication.shared.delegate else { fatalError() }
        guard let window = appDelegate.window else { fatalError() }
        window?.addSubview(self)

        }
    }

    /// Creates the container view here: create the dialog, then add the custom content and buttons
    private func createContainerView() -> UIView {
        let screenSize = countScreenSize()
        let dialogSize = CGSize(
