Ejemplo n.º 1
0
        private void Button_Click(object sender, RoutedEventArgs e)
        {
            Graf_otgr_edit Graf_otgr_Edit = new Graf_otgr_edit();

            Graf_otgr_Edit.ShowDialog();
            int contract = Convert.ToInt32(comboBox1.SelectedValue);

            NewUpdate(contract);
        }
Ejemplo n.º 2
0
        private void Button_Click_1(object sender, RoutedEventArgs e)
        {
            if (_ListView.SelectedItem != null)
            {
                Graf_otgr_edit Graf_otgr_Edit = new Graf_otgr_edit(_ListView.SelectedItem as DataRowView);
                Graf_otgr_Edit.ShowDialog();

                int contract = Convert.ToInt32(comboBox1.SelectedValue);
                NewUpdate(contract);
            }
            else
            {
                MessageBox.Show("Строка не выбрана!");
            }
        }