Beispiel #1
0
        private void FrmMain_Load(object sender, System.EventArgs e)
        {
            Check(MyAction.ReportOS());

            MyAction.FirstLaunch();                    // Create necessary keys

            ApplyViewOptions();                        // Apply ViewMain and TreeMain options

            ApplyFormOptions(true);                    // Apply All User's Customizations related to the form

            TreeMain.SelectedNode = TreeMain.Nodes[0]; // Focuse on the first node

            ContainerMathod("All Enabled Entries");    // core method
        }
Beispiel #2
0
        private void CombHkey_SelectedIndexChanged(object sender, System.EventArgs e)
        {
            CombSuffix.Items.Clear();
            CombSuffix.Items.AddRange(SuffixXp);

            if (CombHkey.SelectedIndex == 0)
            {
                if (MyAction.ReportOS() == "A None WinXp System")
                {
                    CombSuffix.Items.AddRange(Suffix9X);
                }
            }

            CombSuffix.SelectedIndex = 0;
        }
Beispiel #3
0
        private void FrmTextEditor_Load(object sender, System.EventArgs e)
        {
            string Windows = Environment.SystemDirectory.Substring(0, 11);

            switch (MyAct.ReportOS())
            {
            case "WinXp With Admin":

                ReadTxt(TxtBootINI, @"c:\boot.ini");
                ReadTxt(TxtConfigNT, Environment.SystemDirectory + @"\CONFIG.NT");

                PageBootINI.Tag  = @"c:\boot.ini";
                PageConfigNT.Tag = Environment.SystemDirectory + @"\CONFIG.NT";

                PageAutoEXEC.Dispose();                         // Dispose we do no need it
                PageConfigSys.Dispose();                        // Dispose we do no need it

                break;

            case "A None WinXp System":                     // NOt Xp

                ReadTxt(TxtAutoExec, @"c:\autoexec.bat");
                ReadTxt(TxtConfigSYS, @"c:\config.sys");

                PageAutoEXEC.Tag  = @"c:\autoexec.bat";
                PageConfigSys.Tag = "c:\\config.sys";

                PageBootINI.Dispose();                         // Dispose we do no need it
                PageConfigNT.Dispose();                        // Dispose we do no need it
                break;
            }


            ReadTxt(TxtWinINI, Windows + "WIN.INI");                 // Common
            ReadTxt(TxtSystemINI, Windows + "SYSTEM.INI");           //Common

            PageSystemINI.Tag = Windows + "SYSTEM.INI";
            PageWinINI.Tag    = Windows + "WIN.INI";

            TabTxtEdit.SelectedTab = PageSystemINI;
        }