예제 #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);
        }
예제 #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("Строка не выбрана!");
            }
        }