static int GeneralStructGrab() { var count = new GeneralStruct { A = 4, B = 4, C = 4, D = 4 }; return(Unsafe.As <GeneralStruct, int>(ref count)); }
public static void SaveGeneralSettings(LoadedSettings loadedSettings, GeneralStruct general) { RegistryKeyUtils.SaveNewRegistryKey(loadedSettings, general.RegistryKey); GlobalHotkeyUtils.SaveNewGlobalHotkey(loadedSettings, general.GlobalHotkey); loadedSettings.General.ShowBalloonTips = general.ShowBalloonTips; loadedSettings.General.IconFont = general.IconFont; loadedSettings.General.IconFontSize = general.IconFontSize; loadedSettings.General = loadedSettings.General; MessageBox.Show($"Settings {Constants.Messages.SavedSuccessfully}", $"Settings {Constants.Messages.SavedSuccessfullyCaption}", MessageBoxButtons.OK, MessageBoxIcon.Information); }