コード例 #1
0
 //добавить местоположение
 private void addLocationToolStripMenuItem_Click(object sender, EventArgs e)
 {
     Location_Edit frm = new Location_Edit();
     DialogResult result = frm.ShowDialog();
     if (result == DialogResult.OK)
     {
         LoadData();
     }
 }
コード例 #2
0
        //добавить местоположение
        private void addLocationToolStripMenuItem_Click(object sender, EventArgs e)
        {
            Location_Edit frm    = new Location_Edit();
            DialogResult  result = frm.ShowDialog();

            if (result == DialogResult.OK)
            {
                LoadData();
            }
        }
コード例 #3
0
 //редактировать местоположение
 private void editLocationToolStripMenuItem_Click(object sender, EventArgs e)
 {
     if (listBoxLocations.SelectedItem != null)
     {
         string        location = listBoxLocations.SelectedItem.ToString();
         Location_Edit frm      = new Location_Edit(location);
         DialogResult  result   = frm.ShowDialog();
         if (result == DialogResult.OK)
         {
             LoadData();
         }
     }
 }
コード例 #4
0
 //редактировать местоположение
 private void editLocationToolStripMenuItem_Click(object sender, EventArgs e)
 {
     if (listBoxLocations.SelectedItem != null)
     {
         string location = listBoxLocations.SelectedItem.ToString();
         Location_Edit frm = new Location_Edit(location);
         DialogResult result = frm.ShowDialog();
         if (result == DialogResult.OK)
         {
             LoadData();
         }
     }
     
 }