Exemplo n.º 1
0
        public MainPage(IPostgreServer postgreServer)
        {
            InitializeComponent();

            _mainViewModel = new MainViewModel(postgreServer);
            _mainViewModel.ExceptionEvent += ShowMessage;

            DataContext = _mainViewModel;
        }
Exemplo n.º 2
0
        public MainViewModel(IPostgreServer postgreServer)
        {
            _mainModel = new MainModel(postgreServer);
            _mainModel.ExceptionEvent += (object sender, string content) => { ExceptionEvent(sender, content); };

            IsSymmetry    = true;
            SelectedCrypt = ChipherAlgo.AES_128;
            GenLength     = 100;

            UpdateTableOnStart();
        }
Exemplo n.º 3
0
 public void CreateServer(IConnectionSettings connectionSettings, string password)
 {
     PostgreServer = new PostgreServer(new ConnectionCreator(connectionSettings).Init(password));
 }
Exemplo n.º 4
0
 private void NavigateForvard(object sender, IPostgreServer postgreServer)
 {
     nav = NavigationService.GetNavigationService(this);
     nav.Navigate(new MainPage(postgreServer));
 }
Exemplo n.º 5
0
        public MainModel(IPostgreServer postgreServer)
        {
            _postgreServer = postgreServer;

            _postgreServer.ExceptionEvent += (object sender, string content) => { ExceptionEvent(sender, content); };
        }