public bool Show(int budgetId, out PaydayStart paydayStart)
        {
            paydayStart = null;

            IPaydayEventStartViewModel viewModel = m_paydayEventStartViewModelFactory.Create(budgetId);
            var  window = new PaydayEventStartWindow(viewModel);
            bool?result = window.ShowDialog();

            if (result.HasValue && result.Value)
            {
                paydayStart = viewModel.ToPaydayStart();
                return(true);
            }

            return(false);
        }
Пример #2
0
        public PaydayEventStartWindow(IPaydayEventStartViewModel viewModel)
        {
            InitializeComponent();

            DataContext = viewModel;
        }