int     SW = -1;
 | 
    string  file_name;
    int     pos;
    string  code;
    // Set Get アクセッサ
    public int getpos
    {   get
        {   return pos;   }
    }
    public string char_code
    {   set
        {   code= value;  }
    }
    public string file
    {   get
        {   return file_name;  }
    }
 | 
    Edit    edit = new Edit();  // Edit Object Class の定義
    int     SW = -1;
    // Window を描画
    private void MyHandler(object sender, PaintEventArgs e)
    {
        if (SW==0)  return;
        if (SW==1)  edit.GetFile();
        textBox1.Text = edit.View();
        this.Text = edit.file;
        SW = 0;
    }
 | 
    private void FileOpen(object sender, EventArgs e)
    {
        edit.OpenFile();
        SW = 2;
        Invalidate();
    }
 | 
    private void utf16(object sender, EventArgs e)
    {
        edit.char_code = "utf-16";
        SW = 2;
        Invalidate();
    }
    private void utf8(object sender, EventArgs e)
    {
        edit.char_code = "utf-8";
        SW = 2;
        Invalidate();
    }
    private void jis(object sender, EventArgs e)
    {
        edit.char_code = "Shift_JIS";
        SW = 2;
        Invalidate();
    }
    private void none(object sender, EventArgs e)
    {
        edit.code = string.Empty;
        SW = 2;
        Invalidate();
    }
 | 
![]()
[Next Chapter ↓] ページを修正
[Previous Chapter ↑] Binary Editor のメニューを設定