Example #1
0
        /// <summary>
        /// Add new note.
        /// </summary>
        private void BtnAdd_Click(object sender, RoutedEventArgs e)
        {
            var inputBox = new InputBox();

            inputBox.ShowDialog();

            if (inputBox.Phrase != null)
            {
                noteViewModel.AddItem(inputBox.Phrase);
            }
        }
 /// <summary>
 /// Add activity to table.
 /// </summary>
 public void Button_Click_Add(object sender, RoutedEventArgs e)
 {
     activityViewModel.AddItem();
 }