Exemplo n.º 1
0
        private void save_Click(object sender, RoutedEventArgs e)
        {
            var result = ServiceCalls.CreateNote(context.UserContext.UserName, context.UserContext.Password, title.Text);

            if (result)
            {
                NoteNavigationContext nnc = new NoteNavigationContext()
                {
                    NoteHeader  = title.Text,
                    NoteBody    = "", //The note is empty by default...no need to fetch anything just yet
                    UserContext = context.UserContext
                };

                Frame.Navigate(typeof(EditNote), nnc);
            }
        }