Ejemplo n.º 1
0
        public void AddLine(string line)
        {
            DetailedData_OneOtherGuiLine a = new DetailedData_OneOtherGuiLine()
            {
                Line = line
            };
            string        allText;
            StringBuilder debug = new StringBuilder();

            textController.AddLineAndUpdate3(a, out allText, debug);
            theForm.UserAction_DisplayText(new Data_DisplayText(true, allText, this.StopRequest));
        }
Ejemplo n.º 2
0
        public static void DebugDisplayTextControllerPart_MultiLine(IMyLog log, QuestionOption it)
        {
            string                res;
            StringBuilder         sb = new StringBuilder();
            StringBuilder         im = new StringBuilder();
            DisplayTextController c  = new DisplayTextController(false);

            c.AddLineAndUpdate3(new DetailedData_LastBadProcess(13, new TimeSpan(13)), out res, sb); resOut(res);
            c.AddLineAndUpdate3(new DetailedData_LastBadProcess(13, new TimeSpan(13)), out res, sb); resOut(res);

            c.AddLineAndUpdate3(new DetailedData_AndroidCommunication_BT(DetailedData_AndroidCommunication_BT.eType.eFirstInit), out res, sb); resOut(res);

            c.AddLineAndUpdate3(new DetailedData_AndroidCommunication_BT(DetailedData_AndroidCommunication_BT.eType.eStart), out res, sb); resOut(res);
            c.AddLineAndUpdate3(new DetailedData_AndroidCommunication_BT(DetailedData_AndroidCommunication_BT.eType.eReportEndPoint, "TheEndPoint"), out res, sb); resOut(res);
            c.AddLineAndUpdate3(new DetailedData_AndroidCommunication_BT(DetailedData_AndroidCommunication_BT.eType.eReportTelNumbers, 0, 31), out res, sb); resOut(res);
            c.AddLineAndUpdate3(new DetailedData_AndroidCommunication_BT(DetailedData_AndroidCommunication_BT.eType.eReportTelNumbers, 13, 0), out res, sb); resOut(res);
            c.AddLineAndUpdate3(new DetailedData_AndroidCommunication_BT(DetailedData_AndroidCommunication_BT.eType.eDone, true, DateTime.Now.AddSeconds(30)), out res, sb); resOut(res);

            c.AddLineAndUpdate3(new DetailedData_AndroidCommunication_BT(DetailedData_AndroidCommunication_BT.eType.eStart), out res, sb); resOut(res);
            c.AddLineAndUpdate3(new DetailedData_AndroidCommunication_BT(DetailedData_AndroidCommunication_BT.eType.eReportEndPoint, "TheEndPoint"), out res, sb); resOut(res);
            c.AddLineAndUpdate3(new DetailedData_AndroidCommunication_BT(DetailedData_AndroidCommunication_BT.eType.eReportTelNumbers, 113, 131), out res, sb); resOut(res);
            c.AddLineAndUpdate3(new DetailedData_AndroidCommunication_BT(DetailedData_AndroidCommunication_BT.eType.eDone, false, DateTime.Now.AddSeconds(30)), out res, sb); resOut(res);

            c.AddLineAndUpdate3(new DetailedData_AndroidCommunication_BT(DetailedData_AndroidCommunication_BT.eType.eStart), out res, sb); resOut(res);
            c.AddLineAndUpdate3(new DetailedData_AndroidCommunication_BT(DetailedData_AndroidCommunication_BT.eType.eReportEndPoint, "TheEndPoint"), out res, sb); resOut(res);
            c.AddLineAndUpdate3(new DetailedData_AndroidCommunication_BT(DetailedData_AndroidCommunication_BT.eType.eReportTelNumbers, 13, 31), out res, sb); resOut(res);
            c.AddLineAndUpdate3(new DetailedData_AndroidCommunication_BT(DetailedData_AndroidCommunication_BT.eType.eDone, true, DateTime.Now.AddSeconds(30)), out res, sb); resOut(res);

            c.AddLineAndUpdate3(new DetailedData_AndroidCommunication_BT(DetailedData_AndroidCommunication_BT.eType.eStart), out res, sb); resOut(res);
            c.AddLineAndUpdate3(new DetailedData_AndroidCommunication_BT(DetailedData_AndroidCommunication_BT.eType.eReportEndPoint, "TheEndPoint"), out res, sb); resOut(res);
            c.AddLineAndUpdate3(new DetailedData_AndroidCommunication_BT(DetailedData_AndroidCommunication_BT.eType.eReportTelNumbers, 13, 31), out res, sb); resOut(res);
            c.AddLineAndUpdate3(new DetailedData_AndroidCommunication_BT(DetailedData_AndroidCommunication_BT.eType.eDone, true, DateTime.Now.AddSeconds(30)), out res, sb); resOut(res);

            c.GetStatus().TheList.ForEach(e => e.ToIntermapperInfo(im));
            Debug.WriteLine("-----------------------------");
            Debug.WriteLine(im.ToString());
        }