Exemplo n.º 1
0
        public ImageEditor()
        {
            InitializeComponent();
            parser     = new CImageParser();
            mapTexture = parser.ParseTexture();

            ImageBox.Image = null;

            TextureName.Items.AddRange(mapTexture.Keys.ToArray());

            FrameBar.Minimum = 0;
            FrameBar.Maximum = 0;

            backFrameCounter.WorkerReportsProgress      = true;
            backFrameCounter.WorkerSupportsCancellation = true;

            backFrameCounter.DoWork +=
                new DoWorkEventHandler(backFrameCounter_DoWork);
            backFrameCounter.RunWorkerCompleted +=
                new RunWorkerCompletedEventHandler(
                    backFrameCounter_RunWorkerCompleted);
            backFrameCounter.ProgressChanged +=
                new ProgressChangedEventHandler(
                    backFrameCounter_ProgressChanged);
        }
Exemplo n.º 2
0
        private void ResetButton_Click(object sender, EventArgs e)
        {
            if (parser != null)
            {
                parser = null;
                parser = new CImageParser();

                TextureName.Items.Clear();
                TextureName.SelectedItem = null;
                SpriteName.Items.Clear();
                SpriteName.SelectedItem = null;
                TextureName.Items.AddRange(mapTexture.Keys.ToArray());
            }
        }