OpenCores
URL https://opencores.org/ocsvn/thor/thor/trunk

Subversion Repositories thor

[/] [thor/] [trunk/] [software/] [emuThor/] [source/] [frmPCHistory.h] - Blame information for rev 32

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 32 robfinch
#pragma once
2
 
3
namespace emuThor {
4
 
5
        using namespace System;
6
        using namespace System::ComponentModel;
7
        using namespace System::Collections;
8
        using namespace System::Windows::Forms;
9
        using namespace System::Data;
10
        using namespace System::Drawing;
11
        using namespace System::Threading;
12
 
13
        /// <summary>
14
        /// Summary for frmPCHistory
15
        /// </summary>
16
        public ref class frmPCHistory : public System::Windows::Forms::Form
17
        {
18
        public:
19
                frmPCHistory(Mutex^ m)
20
                {
21
                        mut = m;
22
                        InitializeComponent();
23
                        //
24
                        //TODO: Add the constructor code here
25
                        //
26
                        char buf[4000];
27
                        int xx;
28
                        buf[0] = '\0';
29
                        for (xx = 0; xx < 40; xx++) {
30
                                mut->WaitOne();
31
                                sprintf(&buf[strlen(buf)], "%08I64X\r\n", system1.cpu2.pcs[xx]);
32
                                mut->ReleaseMutex();
33
                        }
34
                        textBox1->Text = gcnew String(buf);
35
                }
36
                frmPCHistory(void)
37
                {
38
                        InitializeComponent();
39
                        //
40
                        //TODO: Add the constructor code here
41
                        //
42
                        char buf[4000];
43
                        int xx;
44
                        buf[0] = '\0';
45
                        for (xx = 0; xx < 40; xx++) {
46
                                mut->WaitOne();
47
                                sprintf(&buf[strlen(buf)], "%08I64X\r\n", system1.cpu2.pcs[xx]);
48
                                mut->ReleaseMutex();
49
                        }
50
                        textBox1->Text = gcnew String(buf);
51
                }
52
 
53
        protected:
54
                /// <summary>
55
                /// Clean up any resources being used.
56
                /// </summary>
57
                ~frmPCHistory()
58
                {
59
                        if (components)
60
                        {
61
                                delete components;
62
                        }
63
                }
64
        private: System::Windows::Forms::TextBox^  textBox1;
65
        public: Mutex^ mut;
66
        protected:
67
 
68
        private:
69
                /// <summary>
70
                /// Required designer variable.
71
                /// </summary>
72
                System::ComponentModel::Container ^components;
73
 
74
#pragma region Windows Form Designer generated code
75
                /// <summary>
76
                /// Required method for Designer support - do not modify
77
                /// the contents of this method with the code editor.
78
                /// </summary>
79
                void InitializeComponent(void)
80
                {
81
                        this->textBox1 = (gcnew System::Windows::Forms::TextBox());
82
                        this->SuspendLayout();
83
                        // 
84
                        // textBox1
85
                        // 
86
                        this->textBox1->Location = System::Drawing::Point(12, 22);
87
                        this->textBox1->Multiline = true;
88
                        this->textBox1->Name = L"textBox1";
89
                        this->textBox1->Size = System::Drawing::Size(162, 385);
90
                        this->textBox1->TabIndex = 0;
91
                        // 
92
                        // frmPCHistory
93
                        // 
94
                        this->AutoScaleDimensions = System::Drawing::SizeF(6, 13);
95
                        this->AutoScaleMode = System::Windows::Forms::AutoScaleMode::Font;
96
                        this->ClientSize = System::Drawing::Size(193, 438);
97
                        this->Controls->Add(this->textBox1);
98
                        this->FormBorderStyle = System::Windows::Forms::FormBorderStyle::FixedSingle;
99
                        this->Name = L"frmPCHistory";
100
                        this->Text = L"PCHistory";
101
                        this->ResumeLayout(false);
102
                        this->PerformLayout();
103
 
104
                }
105
#pragma endregion
106
        };
107
}

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.