Esempio n. 1
0
        static void Main()
        {
            if (!StartChecks.StartCheck())
            {
                return;
            }

            // initialize DPIManager BEFORE setting
            // the application to be DPI aware
            DPIManager.PreInitialize();
            User32Util.SetProcessDpiAwareness(ProcessDPIAwareness.ProcessPerMonitorDPIAware);

            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);

            MainForm form = new MainForm();

            DPIManager.AddForm(form);
            DPIManager.ForceUpdate();
            Settings sform = new Settings();

            DPIManager.AddForm(sform);
            DPIManager.ForceUpdate();
            SearchDisksForm sdf = new SearchDisksForm(form);

            DPIManager.AddForm(sdf);
            DPIManager.ForceUpdate();

            Application.Run(form);
        }
Esempio n. 2
0
        private void btnAutoSearch_Click(object sender, EventArgs e)
        {
            if (form != null)
            {
                return;
            }

            form             = new SearchDisksForm(this);
            form.FormClosed += Form_FormClosed;
            form.Show();
            SetUpForm(form);
        }
Esempio n. 3
0
 private void Form_FormClosed(object sender, FormClosedEventArgs e)
 {
     form = null;
 }
Esempio n. 4
0
        private void btnAutoSearch_Click(object sender, EventArgs e)
        {
            if (form != null)
            {
                return;
            }

            form = new SearchDisksForm(this);
            form.FormClosed += Form_FormClosed;
            form.Show();
            SetUpForm(form);
        }
Esempio n. 5
0
 private void Form_FormClosed(object sender, FormClosedEventArgs e)
 {
     form = null;
 }