Esempio n. 1
0
        private void button1_Click(object sender, EventArgs e)
        {
            if (applist.CheckedItems.Count > 0)
            {
                if (!Directory.Exists(CurrentBackupPath))
                {
                    Directory.CreateDirectory(CurrentBackupPath);
                }

                for (int i = 0; i < applist.Items.Count; i++)
                {
                    if (applist.GetItemChecked(i))
                    {
                        selectedAddons.Add(addons[i]);
                    }
                }

                CloneHelper f = new CloneHelper(this, CloneType.Backup);
                f.ShowDialog(this);
            }
        }