/// <summary> /// Handles the specified command. /// </summary> /// <param name="command">The command.</param> /// <returns>IList<IEvent>.</returns> /// <exception cref="DuplicateClientException">Id</exception> private IList <IEvent> Handle(AddNewClient command) { CheckCanCreate(); return (new[] { new NewClientAdded( Id, command.Name, command.Description, command.UserId, command.CorrelationId) }); }
public static int launcherFlag = 0; //1 for follow up 2 for clinic visit// private void btnNewClient_Click(object sender, RoutedEventArgs e) { AddNewClient newPage = new AddNewClient(); pageTransitionControl.ShowPage(newPage); //Change Background btnNewClient.Background = Brushes.LightGray; btnScreening.Background = Brushes.White; btnFollowUp.Background = Brushes.White; button_Copy2.Background = Brushes.White; }
public void Test1() { var NewCli = new AddNewClient(driver); NewCli.Addanewclient("Test1"); }
private void NewClientOpenWindowCommand() { AddNewClient objClient = new AddNewClient(); //objClient.ShowDialog(); }
private void AddClientButton_OnClick(object sender, RoutedEventArgs e) { AddNewClient window = new AddNewClient(); window.ShowDialog(); }