Ejemplo n.º 1
0
        private void Button_AddEntry_Click(object sender, RoutedEventArgs e)
        {
            int result = currentFnt.InsertNewEntry(int.Parse(TextBox_AddEntryMessageID.Text));

            displayTableListView.Refresh();
            if (result == -1)
            {
                MessageBox.Show("Failed to add, make sure BranchId you picked is not in use\n and is not the first/last entry");
            }
            else
            {
                MessageBox.Show("Added successfully");
            }
        }