Exemple #1
0
        public ConnectionDefinitionsWindow()
        {
            InitializeComponent();
            MainViewModel Main_VM = (Application.Current as App).MainVM;

            vm          = Main_VM.ConnectionButtonsVM;
            DataContext = vm;
        }
Exemple #2
0
 public ConnectionButtons()
 {
     InitializeComponent();
     if (Application.Current is App)
     {
         Main_VM = (Application.Current as App).MainVM;
         vm      = Main_VM.ConnectionButtonsVM;
     }
 }