Inheritance: System.Windows.Forms.Form
Ejemplo n.º 1
0
        public WinProgs(string[] oc, ScpForm main)
        {
            InitializeComponent();

            form = main;
            cbs  = new ComboBox[4] {
                cBProfile1, cBProfile2, cBProfile3, cBProfile4
            };
            for (int i = 0; i < 4; i++)
            {
                cbs[i].Items.AddRange(oc);
                cbs[i].Items.Add(Properties.Resources.noneProfile);
                cbs[i].SelectedIndex = cbs[i].Items.Count - 1;
            }
            if (!File.Exists(Global.appdatapath + @"\Auto Profiles.xml"))
            {
                Create();
            }
            LoadP();

            if (Directory.Exists(@"C:\Program Files (x86)\Steam\steamapps\common"))
            {
                steamgamesdir = @"C:\Program Files (x86)\Steam\steamapps\common";
            }
            else if (Directory.Exists(@"C:\Program Files\Steam\steamapps\common"))
            {
                steamgamesdir = @"C:\Program Files\Steam\steamapps\common";
            }
            else
            {
                cMSPrograms.Items.Remove(addSteamGamesToolStripMenuItem);
            }

            if (Directory.Exists(@"C:\Program Files (x86)\Origin Games"))
            {
                origingamesdir = @"C:\Program Files (x86)\Origin Games";
            }
            else if (Directory.Exists(@"C:\Program Files\Origin Games"))
            {
                origingamesdir = @"C:\Program Files\Origin Games";
            }
            else
            {
                cMSPrograms.Items.Remove(addOriginGamesToolStripMenuItem);
            }
        }
Ejemplo n.º 2
0
 public MessageTextBox(string name, ScpForm mainwindow)
 {
     InitializeComponent();
     oldfilename = name;
     yes         = mainwindow;
 }