private void ListBoxClients_MouseDoubleClick(object sender, MouseButtonEventArgs e) { if (this.ListViewClients.SelectedItem != null) { YellowstonePathology.Business.Client.Model.Client client = (YellowstonePathology.Business.Client.Model.Client) this.ListViewClients.SelectedItem; ClientEntryV2 clientEntry = new ClientEntryV2(client, false); clientEntry.ShowDialog(); } }
private void ButtonNewClient_Click(object sender, RoutedEventArgs e) { string objectId = MongoDB.Bson.ObjectId.GenerateNewId().ToString(); int clientId = YellowstonePathology.Business.Gateway.PhysicianClientGateway.GetLargestClientId() + 1; YellowstonePathology.Business.Client.Model.Client client = new YellowstonePathology.Business.Client.Model.Client(objectId, "New Client", clientId); ClientEntryV2 clientEntry = new ClientEntryV2(client, true); clientEntry.ShowDialog(); this.m_ClientCollection.Insert(0, client); }
private void ListBoxClients_MouseDoubleClick(object sender, MouseButtonEventArgs e) { if (this.ListViewClients.SelectedItem != null) { YellowstonePathology.Business.Client.Model.Client client = (YellowstonePathology.Business.Client.Model.Client)this.ListViewClients.SelectedItem; ClientEntryV2 clientEntry = new ClientEntryV2(client, false); clientEntry.ShowDialog(); } }