Пример #1
0
        public Form1(string langName)
        {
            mLangName = langName;
            InitializeComponent();
            mEnlarging = false;
            mPausing   = false;
            mScreenPictureBox.ClientSize = new System.Drawing.Size(0, 0);
            mScreenPictureBox.BackColor  = Color.Green; //TODO:デバグ用
            mScreenPictureBox.ForeColor  = Color.Red;   //TODO:デバグ用

            mSunabaSystem = new SunabaLib.SunabaSystem(this.Handle, mLangName);
            mSunabaSystem.setPictureBoxHandle(mScreenPictureBox.Handle, mWidth * mScale, mHeight * mScale);
            mScreenPictureBox.Refresh();
            mKeys = new sbyte[(int)SunabaLib.SunabaSystem.Key.KEY_COUNT];
            //言語ごとにボタンのテキストを変更
            if (mLangName == "chinese")
            {
                mRebootButton.Text  = "重启";
                mEnlargeButton.Text = "放大/缩小";
            }
            else if (mLangName == "korean")
            {
                mRebootButton.Text  = "재시작";
                mEnlargeButton.Text = "확대/축소";
            }
        }
Пример #2
0
 private void Form2_FormClosing(object sender, FormClosingEventArgs e)
 {
     mSunabaSystem.end();
     mSunabaSystem = null;
 }