Esempio n. 1
0
        private void OpenMainFrame(FunctionInfo[] functions, VO_WF_CZYB vo_WF_CZYB)
        {
            this.HostWindow.Hide();
            var v  = new WX.WFA.MainFrame.W_MainFrame();
            var vm = new WX.WFA.MainFrame.VM_MainFrame(functions, vo_WF_CZYB);

            Application.Current.MainWindow = v;
            v.DataContext = vm;
            vm.MainWindow = v;
            vm.InitializeSpecific();
            v.WindowStartupLocation = WindowStartupLocation.CenterScreen;
            v.WindowState           = WindowState.Maximized;
            v.Show();
        }
Esempio n. 2
0
 private void OpenMainFrame(FunctionInfo[] functions, VO_WF_CZYB vo_WF_CZYB)
 {
     this.HostWindow.Hide();
     var v = new WX.WFA.MainFrame.W_MainFrame();
     var vm = new WX.WFA.MainFrame.VM_MainFrame(functions, vo_WF_CZYB);
     Application.Current.MainWindow = v;
     v.DataContext = vm;
     vm.MainWindow = v;
     vm.InitializeSpecific();
     v.WindowStartupLocation = WindowStartupLocation.CenterScreen;
     v.WindowState = WindowState.Maximized;
     v.Show();
 }