Exemple #1
0
        private void menuPalette_EditColors_Click(object sender, EventArgs e)
        {
            Subpalette p = ActivePalette().GetCurrentSubpalette();

            if (p == null)
            {
                return;
            }

            ColorEncodingView cedit  = new ColorEncodingView(this, p);
            DialogResult      result = cedit.ShowDialog();

            //UpdatePaletteColor(tab);
            if (result == DialogResult.Yes)
            {
                m_doc.HasUnsavedChanges = true;
                HandleColorDataChange(ActivePalette());
            }
        }
        private void menuPalette_EditColors_Click(object sender, EventArgs e)
        {
            Subpalette p = ActivePalette().GetCurrentSubpalette();
            if (p == null)
                return;

            ColorEncodingView cedit = new ColorEncodingView(this, p);
            DialogResult result = cedit.ShowDialog();

            //UpdatePaletteColor(tab);
            if (result == DialogResult.Yes)
            {
                m_doc.HasUnsavedChanges = true;
                HandleColorDataChange(ActivePalette());
            }
        }