コード例 #1
0
 /// <summary>
 /// Handles the specified command.
 /// </summary>
 /// <param name="command">The command.</param>
 /// <returns>IList&lt;IEvent&gt;.</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) });
 }
コード例 #2
0
        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;
        }
コード例 #3
0
    public void Test1()
    {
        var NewCli = new AddNewClient(driver);

        NewCli.Addanewclient("Test1");
    }
コード例 #4
0
 private void NewClientOpenWindowCommand()
 {
     AddNewClient objClient = new AddNewClient();
     //objClient.ShowDialog();
 }
コード例 #5
0
        private void AddClientButton_OnClick(object sender, RoutedEventArgs e)
        {
            AddNewClient window = new AddNewClient();

            window.ShowDialog();
        }