Beispiel #1
0
        private void BtnSec_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 ReleaseSectionsAll(TheRelease);

            frm.TheStatus = ste.Status.Where(a => a.Id == tid).Single();
            frm.Show();
        }
Beispiel #2
0
        private void DgSections_Selected(object sender, RoutedEventArgs e)
        {
            var frm = new ReleaseSectionsAll(TheRelease);

            frm.Show();
        }