Esempio n. 1
0
        private void menuItemResources_Click(object sender, EventArgs e)
        {
            var resourcesForm = new ResourcesForm(false);

            resourcesForm.ShowDialog(this);
            if (resourcesForm.shouldRefreshUI)
            {
                SetupUIAsync();
            }
        }
Esempio n. 2
0
        private void buttonSelectResourceImage_Click(object sender, EventArgs e)
        {
            ResourcesForm resourcesForm = new ResourcesForm(true);

            resourcesForm.ShowDialog(this);

            if (resourcesForm.DialogResult == DialogResult.OK)
            {
                pictureBoxImgPreview.Image = resourcesForm.selectedImage;
                pictureBoxImgPreview.Tag   = resourcesForm.selectedImageId;
            }
        }