public SettingsForm(MainForm mainForm) { InitializeComponent(); _mainForm = mainForm; intervalTracker.Value = _mainForm._checkInterval / 60000; _currentSound = _mainForm._newMailSound; // get startup value from registry RegistryKey registry = Registry.CurrentUser.OpenSubKey(@"Software\Microsoft\Windows\CurrentVersion\Run"); string value; using (registry) value = (string)registry.GetValue("GmailNotifier"); if (value == Application.ExecutablePath) startupChk.Checked = true; soundCombo.Text = ValueToLabel(_currentSound); ResetFileOpener(); _comboReady = true; }
public ThumbForm(MainForm mainForm) { InitializeComponent(); _mainForm = mainForm; Owner = _mainForm; Size = new Size(200, 119); Location = new Point(Owner.Location.X + Size.Width, Owner.Location.Y + Size.Height); // we're not in designer land anymore toto foreach (Panel panel in this.Controls.OfType<Panel>()) panel.Location = new Point(0, 0); }
public LoginForm(MainForm mainForm) { InitializeComponent(); _mainForm = mainForm; }