Esempio n. 1
0
 public static HierarchTreeVm Instance()
 {
     if (self == null)
     {
         self = new HierarchTreeVm();
     }
     return(self);
 }
        private void Call_Hierarch()
        {
            var treeHierarchVM = HierarchTreeVm.Instance();

            treeHierarchVM.Mode = Mode.JustForView;

            IHierarchModal dialog = ServiceProvider.Instance.Get <IHierarchModal>();

            dialog.BindViewModel(treeHierarchVM);
            dialog.ShowDialog();
        }