public AddName(bool envTab, LoadedSettings loadedSettings) { InitializeComponent(); _isEnv = envTab; _loadedSettings = loadedSettings; textLabel.Text = envTab ? ENV_TEXT : TOOL_TEXT; }
/// <summary> /// Main Class for RegistryMonitor. /// </summary> public Form1() { if (_allowLogging) { ExceptionlessClient.Default.Register(false); ExceptionlessClient.Default.Configuration.SetUserIdentity(Environment.MachineName); ExceptionlessClient.Default.Configuration.UseSessions(); } InitializeComponent(); _loadedSettings = new LoadedSettings(); LoadMenu(); _hkManager = new HotKeyManager(); LoadGlobalHotkey(); _menuStrip = menuStrip; // Gets the location of the systray icon _superNotifyIcon = new SuperNotifyIcon { NotifyIcon = Icon }; _locationOfIcon = _superNotifyIcon.GetLocation(); _settingsAlreadyRunning = false; }
/// <summary> /// All settings for RegistryMonitor. /// </summary> /// <param name="loadedSettings"></param> public Settings(LoadedSettings loadedSettings) { InitializeComponent(); _loadedSettings = loadedSettings; tabControl.SelectedTab = tabGeneral; }
/// <summary> /// Main Class for RegistryMonitor. /// </summary> public Form1() { if (_allowLogging) { ExceptionlessClient.Default.Register(false); ExceptionlessClient.Default.Configuration.SetUserIdentity(Environment.MachineName); ExceptionlessClient.Default.Configuration.UseSessions(); } InitializeComponent(); _loadedSettings = new LoadedSettings(); LoadMenu(); _hkManager = new HotKeyManager(); LoadGlobalHotkey(); _menuStrip = menuStrip; // Gets the location of the systray icon _superNotifyIcon = new SuperNotifyIcon {NotifyIcon = Icon}; _locationOfIcon = _superNotifyIcon.GetLocation(); _settingsAlreadyRunning = false; }
public AddRegistryKey(LoadedSettings loadedSettings) { InitializeComponent(); _loadedSettings = loadedSettings; }