Пример #1
0
        public AppController(IDataContext dataContext, IMessageService messageService)
        {
            DataContext = dataContext ??
                          throw new ArgumentNullException(nameof(dataContext));
            MessageService = messageService ??
                             throw new ArgumentNullException(nameof(messageService));

            var vm = new MainViewModel(this);

            _mainfrom = new Mainfrom_MedicalRecord(vm);
        }
Пример #2
0
        public void ShowMainfrom()
        {
            var vm   = new MainViewModel(this);
            var from = new Mainfrom_MedicalRecord(vm);

            //from.Owner = _mainfrom;
            //from.ShowDialog();
            if (from == null || from.IsDisposed)
            {
                from.Show();
            }
        }