Esempio n. 1
0
        public void Send(Object obj = null)
        {
            ModelScoring sc = (obj as ProblemScreen).scoring;

            if (!IncludeMail)
            {
                sc = null;
            }

            ReportMail reportMail = new ReportMail(new ModelReportMail(detailedText, subject, sc), report);

            Close(obj);
        }
Esempio n. 2
0
        public static void ShowHeader(object obj)
        {
            // May write new scoring
            if (obj is ModelScoring)
            {
                scoring = obj as ModelScoring;
            }
            else if (obj != null)
            {
                throw new ArgumentException("Object must be from type ModelScoring.");
            }

            Visualize();

            // Set the visible header
            ScoreMinHeight  = 0;
            ScoreMaxHeight  = 0;
            HeaderMinHeight = viewHeaderHeight;
            HeaderMaxHeight = viewHeaderHeight;
        }
 public ProblemScreen(ModelScoring sc)
 {
     scoring = sc;
     InitializeComponent();
 }