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

Subversion Repositories thor

[/] [thor/] [trunk/] [software/] [emuThor/] [source/] [frmPCHistory.h] - Diff between revs 32 and 35

Show entire file | Details | Blame | View Log

Rev 32 Rev 35
Line 21... Line 21...
                        mut = m;
                        mut = m;
                        InitializeComponent();
                        InitializeComponent();
                        //
                        //
                        //TODO: Add the constructor code here
                        //TODO: Add the constructor code here
                        //
                        //
                        char buf[4000];
                        UpdateForm();
                        int xx;
 
                        buf[0] = '\0';
 
                        for (xx = 0; xx < 40; xx++) {
 
                                mut->WaitOne();
 
                                sprintf(&buf[strlen(buf)], "%08I64X\r\n", system1.cpu2.pcs[xx]);
 
                                mut->ReleaseMutex();
 
                        }
 
                        textBox1->Text = gcnew String(buf);
 
                }
                }
                frmPCHistory(void)
                frmPCHistory(void)
                {
                {
                        InitializeComponent();
                        InitializeComponent();
                        //
                        //
                        //TODO: Add the constructor code here
                        //TODO: Add the constructor code here
                        //
                        //
                        char buf[4000];
                        UpdateForm();
                        int xx;
 
                        buf[0] = '\0';
 
                        for (xx = 0; xx < 40; xx++) {
 
                                mut->WaitOne();
 
                                sprintf(&buf[strlen(buf)], "%08I64X\r\n", system1.cpu2.pcs[xx]);
 
                                mut->ReleaseMutex();
 
                        }
 
                        textBox1->Text = gcnew String(buf);
 
                }
                }
 
 
        protected:
        protected:
                /// <summary>
                /// <summary>
                /// Clean up any resources being used.
                /// Clean up any resources being used.
Line 81... Line 65...
                        this->textBox1 = (gcnew System::Windows::Forms::TextBox());
                        this->textBox1 = (gcnew System::Windows::Forms::TextBox());
                        this->SuspendLayout();
                        this->SuspendLayout();
                        // 
                        // 
                        // textBox1
                        // textBox1
                        // 
                        // 
                        this->textBox1->Location = System::Drawing::Point(12, 22);
                        this->textBox1->Location = System::Drawing::Point(12, 47);
                        this->textBox1->Multiline = true;
                        this->textBox1->Multiline = true;
                        this->textBox1->Name = L"textBox1";
                        this->textBox1->Name = L"textBox1";
                        this->textBox1->Size = System::Drawing::Size(162, 385);
                        this->textBox1->ReadOnly = true;
 
                        this->textBox1->ScrollBars = System::Windows::Forms::ScrollBars::Vertical;
 
                        this->textBox1->Size = System::Drawing::Size(162, 379);
                        this->textBox1->TabIndex = 0;
                        this->textBox1->TabIndex = 0;
                        // 
                        // 
                        // frmPCHistory
                        // frmPCHistory
                        // 
                        // 
                        this->AutoScaleDimensions = System::Drawing::SizeF(6, 13);
                        this->AutoScaleDimensions = System::Drawing::SizeF(6, 13);
Line 96... Line 82...
                        this->ClientSize = System::Drawing::Size(193, 438);
                        this->ClientSize = System::Drawing::Size(193, 438);
                        this->Controls->Add(this->textBox1);
                        this->Controls->Add(this->textBox1);
                        this->FormBorderStyle = System::Windows::Forms::FormBorderStyle::FixedSingle;
                        this->FormBorderStyle = System::Windows::Forms::FormBorderStyle::FixedSingle;
                        this->Name = L"frmPCHistory";
                        this->Name = L"frmPCHistory";
                        this->Text = L"PCHistory";
                        this->Text = L"PCHistory";
 
                        this->FormClosing += gcnew System::Windows::Forms::FormClosingEventHandler(this, &frmPCHistory::frmPCHistory_FormClosing);
                        this->ResumeLayout(false);
                        this->ResumeLayout(false);
                        this->PerformLayout();
                        this->PerformLayout();
 
 
                }
                }
#pragma endregion
#pragma endregion
 
        private: System::Void frmPCHistory_FormClosing(System::Object^  sender, System::Windows::Forms::FormClosingEventArgs^  e) {
 
                         if (e->CloseReason==CloseReason::UserClosing)
 
                                 e->Cancel = true;
 
                         }
 
        public: void UpdateForm() {
 
                                char buf[4000];
 
                                int xx;
 
                                buf[0] = '\0';
 
                                for (xx = 0; xx < 40; xx++) {
 
                                        mut->WaitOne();
 
                                        sprintf(&buf[strlen(buf)], "%08I64X\r\n", system1.cpu2.pcs[xx]);
 
                                        mut->ReleaseMutex();
 
                                }
 
                                textBox1->Text = gcnew String(buf);
 
                        }
        };
        };
}
}
 
 
 No newline at end of file
 No newline at end of file

powered by: WebSVN 2.1.0

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