public ProductReleaseDateViewModel(UserInformation userInformation, System.Windows.Window window, ProductInformationModel productInformationModel,
                                    ProcessDesigner.Common.OperationMode operationMode, string title = "Document Release Date")
 {
     PRODUCT_INFORMATION_MODEL = (productInformationModel.IsNotNullOrEmpty() ? productInformationModel : new ProductInformationModel());
     if (!_productInformationModel.DOC_REL_DATE.IsNotNullOrEmpty())
     {
         FeasibleReportAndCostSheet bll = new FeasibleReportAndCostSheet(userInformation);
         _productInformationModel.DOC_REL_DATE = bll.ServerDateTime();
     }
     this.saveCommand = new DelegateCommand(this.SaveSubmitCommand);
 }
        public frmProductReleaseDate(UserInformation userInformation, System.Windows.Window window, ProductInformationModel productInformationModel,
                                     ProcessDesigner.Common.OperationMode operationMode, string title = "Document Release Date")
        {
            InitializeComponent();

            vm = new ProductReleaseDateViewModel(userInformation, window, productInformationModel, operationMode, title);
            this.DataContext = vm;
            if (vm.CloseAction == null && window.IsNotNullOrEmpty())
            {
                vm.CloseAction = new Action(() => window.Close());
            }
        }