Exemplo n.º 1
0
        public void Edit(IConnection conn)
        {
            var originalProfile = conn.Profile;
            var profile = originalProfile.Clone();
            localConnectionProfileView.DataSource = profile;

            if (!windowManager.ShowDialog(localConnectionProfileView, "Edit connection"))
                return;

            repository.Update(originalProfile,profile);

            conn.UpdateProfileBy(profile);
        }