コード例 #1
0
 private void panel1_ObjectSelectChanged(object sender, SelectEventArgs e)
 {
     if (SelectChanged != null)
     {
         SelectChanged(this, new SelectEventArgs(e.bSelect, e.bCopy));
     }
 }
コード例 #2
0
ファイル: MainWindow.cs プロジェクト: 576189232/EditTool
 private void FormView_ObjectSelectChanged(object sender, SelectEventArgs e)
 {
     if (e.bSelect)
     {
         this.toolStripButton4.Enabled      = true;
         this.toolStripButton5.Enabled      = true;
         this.toolStripButton6.Enabled      = true;
         this.toolStripButton7.Enabled      = true;
         this.toolStripButton8.Enabled      = true;
         this.toolStripButton9.Enabled      = true;
         this.toolStripButton10.Enabled     = true;
         this.toolStripButton11.Enabled     = true;
         this.toolStripButton12.Enabled     = true;
         this.toolStripButton13.Enabled     = true;
         this.toolStripButton14.Enabled     = true;
         this.toolStripButton15.Enabled     = true;
         this.toolStripButton16.Enabled     = true;
         this.toolStripButton17.Enabled     = true;
         this.toolStripButton18.Enabled     = true;
         this.CopyToolStripMenuItem.Enabled = true;
     }
     else
     {
         this.toolStripButton4.Enabled      = false;
         this.toolStripButton5.Enabled      = false;
         this.toolStripButton6.Enabled      = false;
         this.toolStripButton7.Enabled      = false;
         this.toolStripButton8.Enabled      = false;
         this.toolStripButton9.Enabled      = false;
         this.toolStripButton10.Enabled     = false;
         this.toolStripButton11.Enabled     = false;
         this.toolStripButton12.Enabled     = false;
         this.toolStripButton13.Enabled     = false;
         this.toolStripButton14.Enabled     = false;
         this.toolStripButton15.Enabled     = false;
         this.toolStripButton16.Enabled     = false;
         this.toolStripButton17.Enabled     = false;
         this.toolStripButton18.Enabled     = false;
         this.CopyToolStripMenuItem.Enabled = false;
     }
     if (e.bCopy)
     {
         this.PasteToolStripMenuItem.Enabled = true;
     }
     else
     {
         this.PasteToolStripMenuItem.Enabled = false;
     }
 }