随笔(子项引用父窗体到当前区域)

private void btnClick_JCCS_ImportReport(object sender, RoutedEventArgs e) {


this.Content = new DataManagement_ImportReport();

//this.DataContext = new XiangMuFenXi.DataManagement_ImportReport();


//this.DataContext = new DataManagement_ImportReport();

//MainFrame.Navigate(new Uri("/XiangMuFenXi/DataManagement_ImportReport.xaml", UriKind.RelativeOrAbsolute));

//this.DataContext = new XiangMuFenXi.DataManagement_ImportReport();
}

 

 

 

private void btnShouJianDianWeiGuanLi_Click(object sender, RoutedEventArgs e)
{
//MonitorIndicatorManagement.Foreground = new SolidColorBrush(Colors.Black);
//MonitorSiteManagement.Foreground = new SolidColorBrush(Colors.Black);
//ForewarningManagement.Foreground = new SolidColorBrush(Colors.Black);
//btnJianZhuLeiXing.Foreground = new SolidColorBrush(Colors.Black);
//btnKaiGongLv.Foreground = new SolidColorBrush(Colors.Red);

//MainFrame.Navigate(new Uri("/XiangMuFenXi/WaterQualityDataList.xaml", UriKind.RelativeOrAbsolute));
//MainFrame.Navigate(new Uri("/DataCriterion/JianCeZhiBiao.xaml", UriKind.RelativeOrAbsolute));
//WaterBasicInformation wbi = new WaterBasicInformation();
//wbi.Show();
//MainFrame.Navigate(new Uri("/DataManagement/DataManagement.xaml", UriKind.RelativeOrAbsolute));
MainFrame.Content = new DataManagement();
}

 

 

 

posted @ 2013-11-27 10:46  meimao5211  阅读(157)  评论(0)    收藏  举报