예제 #1
0
        private void Button8_Click(object sender, EventArgs e)
        {
            if (listView2.SelectedItems.Count == 0)
            {
                MessageBox.Show("Odaberite sahistu");
                return;
            }
            int          odId = Int32.Parse(listView2.SelectedItems[0].SubItems[0].Text);
            SahistaBasic sb   = DTOManager.GetSahistaBasic(odId);

            SahistaEditBasic sbForm = new SahistaEditBasic(sb);

            if (sbForm.ShowDialog() == System.Windows.Forms.DialogResult.OK)
            {
                DTOManager.UpdateSahistaBasic(sbForm.tBasic);
                populateInfos();
            }
        }
 public SahistaEditBasic(SahistaBasic sb)
 {
     this.tBasic = sb;
     InitializeComponent();
     PopulateData();
 }