private void dg_Application_unit_SelectedCellsChanged(object sender, SelectedCellsChangedEventArgs e)
 {
     if (dg_Application_unit.SelectedItem != null)
     {
         application_Unit_list v = dg_Application_unit.SelectedItem as application_Unit_list;
         string Application_unit = v.運用單位;
         getApplication_unit_detai(Application_unit);
     }
 }
        private void Button_Click(object sender, RoutedEventArgs e)
        {
            if (dg_Application_unit.SelectedItem != null)
            {
                application_Unit_list v = dg_Application_unit.SelectedItem as application_Unit_list;
                string Application_unit = v.運用單位;
                Application_unitdata_View application_Unitdate_View = new Application_unitdata_View("修改", Application_unit);
                application_Unitdate_View.ShowDialog();

                getApplication_unit_detai(application_Unitdate_View.Application_unit_name);
            }
        }