示例#1
0
        private void Button_Click(object sender, RoutedEventArgs e)
        {
            Mes_plan_vip_edit Mes_plan_vip_Edit = new Mes_plan_vip_edit();

            Mes_plan_vip_Edit.ShowDialog();
            int year  = Convert.ToInt32(comboBox1.SelectedValue);
            int month = Convert.ToInt32(comboBox2.SelectedValue);

            NewUpdate(year, month);
        }
示例#2
0
        private void Button_Click_1(object sender, RoutedEventArgs e)
        {
            if (_ListView.SelectedItem != null)
            {
                Mes_plan_vip_edit Mes_plan_vip_Edit = new Mes_plan_vip_edit(_ListView.SelectedItem as DataRowView);
                Mes_plan_vip_Edit.ShowDialog();

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