コード例 #1
0
 private void OnPopulateClick(object sender, EventArgs e)
 {
     if (_palette != null)
     {
         if (MessageBox.Show("Are you sure you want to populate from the base?",
                             "Populate From Base",
                             MessageBoxButtons.YesNo,
                             MessageBoxIcon.Warning) == DialogResult.Yes)
         {
             _palette.PopulateFromBase(false);
             _service.OnComponentChanged(_palette, null, null, null);
         }
     }
 }