private void BtnRep_Click(object sender, RoutedEventArgs e) { var btn = (Button)sender; var strType = btn.Content; var tid = 0; switch (strType) { case "Good": tid = 2; break; case "Bad": tid = 3; break; case "Ugly": tid = 4; break; default: tid = 1; break; } var frm = new ReleaseReports(TheRelease); frm.TheStatus = ste.Status.Where(a => a.Id == tid).Single(); frm.Show(); }
private void Label_MouseDoubleClick(object sender, MouseButtonEventArgs e) { var frm = new ReleaseReports(TheRelease); // frm.TheStatus = ste.Status.Where(a => a.Release_ID == TheRelease.Id && a.Status_ID == TheStatus.Id) frm.Show(); }
private void BtnReports_Click(object sender, RoutedEventArgs e) { Release latestRelease = GetLatestRelease(); var reports = new ReleaseReports(latestRelease); reports.Show(); }
private void DgReports_Selected(object sender, RoutedEventArgs e) { var frm = new ReleaseReports(TheRelease); frm.Show(); }
private void BtnReleaseReports_Click(object sender, RoutedEventArgs e) { var frm = new ReleaseReports(TheRelease); frm.Show(); }