Наследование: System.Windows.Forms.Form
Пример #1
0
        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;
        }
Пример #2
0
        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);
        }
Пример #3
0
        public LoginForm(MainForm mainForm)
        {
            InitializeComponent();

            _mainForm = mainForm;
        }