Наследование: System.Windows.Forms.Form
Пример #1
0
        public void ReplaceColoursWithPatterns(PatternEditor patterns)
        {
            mPatterns = patterns.GetPatterns();
            Bitmap          saved = new Bitmap(mOutput);
            ProgressBarForm prog  = new ProgressBarForm("Replacing Colours With Patterns...");

            prog.StartWorker(ReplaceColoursWithPatterns, this);
            if (prog.DialogResult != System.Windows.Forms.DialogResult.OK)
            {
                mOutput = saved;
            }
        }
Пример #2
0
        public MainForm()
        {
            undoRecolours = new Bitmap[maxUndos];
            //undoMaps = new IColourMap[maxUndos];

            InitializeComponent();
            patternEditor = new PatternEditor(this);
            interpCombo.DataSource = Enum.GetValues(typeof(InterpolationMode));
            patternEditor.FormClosing += new FormClosingEventHandler(patternEditor_FormClosing);
            colourMapCombo.Items.Add(typeof(DMCColourMap));
            colourMapCombo.Items.Add(typeof(SimpleColourMap));
            colourMapCombo.SelectedIndex = 0;
        }
Пример #3
0
        public MainForm()
        {
            undoRecolours = new Bitmap[maxUndos];
            //undoMaps = new IColourMap[maxUndos];

            InitializeComponent();
            patternEditor              = new PatternEditor(this);
            interpCombo.DataSource     = Enum.GetValues(typeof(InterpolationMode));
            patternEditor.FormClosing += new FormClosingEventHandler(patternEditor_FormClosing);
            colourMapCombo.Items.Add(typeof(DMCColourMap));
            colourMapCombo.Items.Add(typeof(SimpleColourMap));
            colourMapCombo.SelectedIndex = 0;
        }
Пример #4
0
 public void ReplaceColoursWithPatterns(PatternEditor patterns)
 {
     mPatterns = patterns.GetPatterns();
     Bitmap saved = new Bitmap(mOutput);
     ProgressBarForm prog = new ProgressBarForm("Replacing Colours With Patterns...");
     prog.StartWorker(ReplaceColoursWithPatterns, this);
     if (prog.DialogResult != System.Windows.Forms.DialogResult.OK)
     {
         mOutput = saved;
     }
 }