private void startupBackgroundTasks_startUpTasksCompleted(object sender, environmentVarsCore enVarsResult) { enVars = enVarsResult; var dataUpdate = new updateMainAppClass(); dataUpdate.envars = enVars; dataUpdate.updateTask = updateMainAppClass.UPDATE_MAIN; updateMainApp.Invoke(this, dataUpdate); this.Close(); }
private void selectPanelBackColor_Click(object sender, EventArgs e) { if (ColorPickerDialog.ShowDialog() == DialogResult.OK) { envars.layoutDesign.PanelBackColor = ColorPickerDialog.Color; var dataUpdate = new updateMainAppClass(); dataUpdate.envars = envars; dataUpdate.updateTask = updateMainAppClass.UPDATE_LAYOUT; updateMainApp.Invoke(this, ref dataUpdate); } }