コード例 #1
0
 public ClientsList()
 {
     _clientRepository = new ClientServiceViewModel();
     InitializeComponent();
     this.DataGridClients.Items.Clear();
     this.DataBindingClients();
 }
コード例 #2
0
 public Clients()
 {
     InitializeComponent();
     _clientRepository = new ClientServiceViewModel();
     _photoRepository  = new PhotoService();
     CleanControls();
     _fileName = string.Empty;
     this.EventsSource();
 }
コード例 #3
0
 public ClientsDetails(int idClient)
 {
     _clientRepository = new ClientServiceViewModel();
     _photoRepository  = new PhotoService();
     InitializeComponent();
     GetClientDetails(idClient);
     _clientId = idClient;
     this.EventsSource();
 }
コード例 #4
0
 public ClientsEdit(int idClient)
 {
     _clientRepository = new ClientServiceViewModel();
     _photoRepository  = new PhotoService();
     InitializeComponent();
     _idClient    = idClient;
     this.Loaded += (e, o) => this.AbrirVentana(_idClient);
     this.EventsSource();
 }
コード例 #5
0
 public ClientsDelete(int clientId)
 {
     _clientRepository  = new ClientServiceViewModel();
     _sessionRepository = new SessionGymServiceViewModel();
     _photoRepository   = new PhotoService();
     InitializeComponent();
     _clientId = clientId;
     GetClientDelete(_clientId);
     this.EventsSource();
 }