Ejemplo n.º 1
0
        /// <summary>
        /// Evento di chiusura della view Gestione gestioni
        /// </summary>
        /// <param name="param">La view che ha inviato l'evento</param>
        public void CloseMe(object param)
        {
            RegistryCurrencyView ROV = param as RegistryCurrencyView;
            DockPanel            wp  = ROV.Parent as DockPanel;

            wp.Children.Remove(ROV);
        }
Ejemplo n.º 2
0
        private void OpenValute(object param)
        {
            DockPanel mainGrid = param as DockPanel;

            if (currencyView == null || !mainGrid.Children.Contains(currencyView))
            {
                registryCurrencyViewModel = new RegistryCurrencyViewModel(_registryServices);
                currencyView = new RegistryCurrencyView(registryCurrencyViewModel);
                mainGrid.Children.Add(currencyView);
            }
            else
            {
                mainGrid.Children.Remove(currencyView);
                currencyView = null;
                registryCurrencyViewModel = null;
            }
        }