コード例 #1
0
 private void spawnWindow()
 {
     textEdit                    = new EditMusicText2();
     textEdit.Owner              = this;
     textEdit.UpdateTilemapFrom += new EditMusicText2.TilemapUpdate(textEdit_UpdateTilemapFrom);
     tilemapChanged();
     textEdit.Show();
 }
コード例 #2
0
 private void button1_Click(object sender, EventArgs e)
 {
     if (textEdit != null)
     {
         if (textEdit.IsDisposed)
         {
             textEdit = null;
             spawnWindow();
         }
         else
         {
             textEdit.Focus();
         }
     }
     else
     {
         spawnWindow();
     }
 }