Exemplo n.º 1
0
        public MainWindow()
        {
            InitializeComponent();

            try
            {
                if (TapDeviceManager.GetTapDevices().ToArray().Length == 0)
                {
                    TapDeviceManager.SetupTapDevice();
                }
            }
            catch (Win32Exception we)
            {
                TapDeviceManager.SetupTapDevice();
            }
            var dialogs = new ViewModelDialogs(this);

            _viewModel = new ConfigurationViewModel(dialogs);

            DataContext = _viewModel;

            GlassMargin = new Margins(12, 12, 105, 12);
        }
Exemplo n.º 2
0
 public CreateEnrollRequestView(ViewModelDialogs pViewModelDialogs)
 {
     _viewModelDialogs = pViewModelDialogs;
     InitializeComponent();
     GlassMargin = new Margins(0, 0, 30, 0);
 }