示例#1
0
        private void Admin_CityAdd_Click(object sender, RoutedEventArgs e)
        {
            DialogBoxCity d = new DialogBoxCity(Service, 1);

            d.ShowDialog();
            if (d.okClick == false)
            {
                return;
            }
            Service.InsertCity(d.result, d.selectedCountry, username, password);
        }
示例#2
0
        private void Admin_CityUpdate_Click(object sender, RoutedEventArgs e)
        {
            Console.WriteLine((int)((DataRowView)Admin_CityCombo.SelectedItem)[2]);
            DialogBoxCity d = new DialogBoxCity(Service, (int)((DataRowView)Admin_CityCombo.SelectedItem)[2]);

            d.ShowDialog();
            if (d.okClick == false)
            {
                return;
            }
            Service.UpdateCity(d.result, d.selectedCountry, (int)Admin_CityCombo.SelectedValue, username, password);
        }