コード例 #1
0
        private void Button_Click(object sender, RoutedEventArgs e)
        {
            Ved_ost_edit ved_ost_Edit = new Ved_ost_edit();

            ved_ost_Edit.ShowDialog();
            NewUpdate();
        }
コード例 #2
0
        private void Button_Click_1(object sender, RoutedEventArgs e)
        {
            if (_ListView.SelectedItem != null)
            {
                Ved_ost_edit ved_ost_Edit = new Ved_ost_edit(_ListView.SelectedItem as DataRowView);
                ved_ost_Edit.ShowDialog();

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