Exemple #1
0
        void saveButton_2_click(object sender, RoutedEventArgs e)
        {
            Information information = new Information()
            {
                Content         = textFN.Text,
                InformationName = textLN.Text,
                UserId          = usersService.GetUserIdByName(Settings.Default.Username)
            };

            infoService.AddInformation(information);
            contextMenu.IsOpen = false;
        }