コード例 #1
0
 private void btnDelRegion_Click(object sender, EventArgs e)
 {
     if (lbRegions.SelectedItem != null)
     {
         if (QuestionMessage(GetLocalized("questionDeleteRegion"), GetLocalized("Confirm")) == DialogResult.Yes)
         {
             Domain.Region r = (Domain.Region)lbRegions.SelectedItem;
             _RegionBindList.Remove(r);
             Modified         = true;
             _RegionsModified = true;
         }
     }
 }
コード例 #2
0
 private void btnDelStore_Click(object sender, EventArgs e)
 {
     if (lbStores.SelectedItem != null)
     {
         if (QuestionMessage(GetLocalized("questionDeleteStore"), GetLocalized("Confirm")) == DialogResult.Yes)
         {
             Store r = (Store)lbStores.SelectedItem;
             _StoreBindList.Remove(r);
             Modified        = true;
             _StoresModified = true;
         }
     }
 }
コード例 #3
0
 private void btnDelCountry_Click(object sender, EventArgs e)
 {
     if (lbCountries.SelectedItem != null)
     {
         if (QuestionMessage(GetLocalized("questionDeleteCountry"), GetLocalized("Confirm")) == DialogResult.Yes)
         {
             Domain.Country country = (Domain.Country)lbCountries.SelectedItem;
             _CountryBindList.Remove(country);
             Modified           = true;
             _CountriesModified = true;
         }
     }
 }