Пример #1
0
        public MainWindow()
        {
            if (Settings.Default.FirstLaunch && dev_FirstLaunch)
            {
                Hide();
            }

            SetStyle(
                ControlStyles.AllPaintingInWmPaint | ControlStyles.OptimizedDoubleBuffer | ControlStyles.DoubleBuffer |
                ControlStyles.ResizeRedraw,
                true);

            InitAfterLng();
            changing = true;
            loadlng();
            var c = Program.GetCulture();

            setlngitem(c);
            automaticallyAddISOInfoToolStripMenuItem.Checked = Settings.Default.AutoAddInfo;

            SetSize();
            if (Program.IsWin)
            {
                Utils.SetWindowTheme(lvIsos.Handle, "EXPLORER", null);
            }


            ISOInfo.UpdateFinished += (o, args) =>
            {
                try
                {
                    if (InvokeRequired)
                    {
                        Invoke((MethodInvoker)(() => mniUpdate.Visible = false));
                    }
                    else
                    {
                        mniUpdate.Visible = false;
                    }
                }
                catch
                {
                }
            };



            if (Settings.Default.FirstLaunch && dev_FirstLaunch)
            {
                var firstlaunch = new FirstLaunch();
                firstlaunch.ShowDialog();

                Show();
            }
        }
Пример #2
0
        public MainWindow()
        {
            if (Settings.Default.FirstLaunch && dev_FirstLaunch)
                Hide();

            SetStyle(
                ControlStyles.AllPaintingInWmPaint | ControlStyles.OptimizedDoubleBuffer | ControlStyles.DoubleBuffer |
                ControlStyles.ResizeRedraw,
                true);

            InitAfterLng();
            changing = true;
            loadlng();
            var c = Program.GetCulture();
            setlngitem(c);
            automaticallyAddISOInfoToolStripMenuItem.Checked = Settings.Default.AutoAddInfo;

            SetSize();
            if (Program.IsWin)
            {
                Utils.SetWindowTheme(lvIsos.Handle, "EXPLORER", null);
            }

            ISOInfo.UpdateFinished += (o, args) =>
            {
                try
                {
                    if (InvokeRequired)
                        Invoke((MethodInvoker) (() => mniUpdate.Visible = false));
                    else mniUpdate.Visible = false;
                }
                catch
                {
                }
            };

            if (Settings.Default.FirstLaunch && dev_FirstLaunch)
            {
                var firstlaunch = new FirstLaunch();
                firstlaunch.ShowDialog();

                Show();
            }
        }