Ejemplo n.º 1
0
 private void SplshScrn_Load(object sender, EventArgs e)
 {
     swatch.Start();
     verTXT.Text = RAppDM_internal.GetShortVersion();
     if (!Directory.Exists("cache"))
     {
         Directory.CreateDirectory("cache");
     }
     if (!Directory.Exists("cache\\repos"))
     {
         Directory.CreateDirectory("cache\\repos");
     }
     if (!Directory.Exists("cache\\downloads"))
     {
         Directory.CreateDirectory("cache\\downloads");
     }
 }
Ejemplo n.º 2
0
        private void AppManager_Load(object sender, EventArgs e)
        {
            Text = $"Apps [RAppDM {RAppDM_internal.GetShortVersion()}]";
            if (Properties.Settings.Default.DebugMode)
            {
                iconurls.Visible       = true;
                downloadurls.Visible   = true;
                silentargs.Visible     = true;
                descs.Visible          = true;
                tempApps.Visible       = true;
                tempCategories.Visible = true;
                tempIndexes.Visible    = true;
                versions.Visible       = true;
                categories.Visible     = true;
                apps.Visible           = true;
                sizes.Visible          = true;
            }
            apps.Items.Clear();
            SColl_Listbox(Properties.Settings.Default.Category, tempCategories);
            SColl_Listbox(Properties.Settings.Default.Description, descs);
            SColl_Listbox(Properties.Settings.Default.Icon, iconurls);
            SColl_Listbox(Properties.Settings.Default.Name, tempApps);
            SColl_Listbox(Properties.Settings.Default.URL, downloadurls);
            SColl_Listbox(Properties.Settings.Default.SilentModeArgument, silentargs);
            SColl_Listbox(Properties.Settings.Default.Version, versions);
            SColl_Listbox(Properties.Settings.Default.Size, sizes);

            //Startup app importing
            foreach (TreeNode category in categoriesAndApps.Nodes[0].Nodes)
            {
                category.Nodes.Clear();
                for (int i = 0; i < tempCategories.Items.Count; i++)
                {
                    if (category.Text == tempCategories.Items[i].ToString())
                    {
                        category.Nodes.Add(tempApps.Items[i].ToString());
                    }
                }
            }
        }