Exemplo n.º 1
0
        private void AddCountryButton_Click(object sender, RoutedEventArgs e)
        {
            Window addLocation = new LocationAdd();

            addLocation.ShowDialog();
            FillTable();
        }
        private void BtnAddCountry_Click(object sender, RoutedEventArgs e)
        {
            LocationAdd locationAdd = new LocationAdd();

            locationAdd.ShowDialog();
            FillTable(FilterTextBox.Text);
        }
Exemplo n.º 3
0
        } // End fill table

        private void LocationAddMenuItem_Click(object sender, RoutedEventArgs e)
        {
            LocationAdd locationWindow = new LocationAdd();

            // Reset the controls to blank
            locationWindow.NameTextbox.Text = "";
            locationWindow.CodeTextbox.Text = "";
            locationWindow.Owner            = this;

            locationWindow.WindowStartupLocation = WindowStartupLocation.CenterOwner;

            if (locationWindow.ShowDialog() == true)
            {
                UpdateStatus(500, "Location Saved");
                FillTable();
                UpdateStatus(50, "Ready...");
            }

            locationWindow.Close();
        }