private void menuItemResources_Click(object sender, EventArgs e) { var resourcesForm = new ResourcesForm(false); resourcesForm.ShowDialog(this); if (resourcesForm.shouldRefreshUI) { SetupUIAsync(); } }
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; } }