Example #1
0
        private void button2_Click(object sender, EventArgs e)
        {
            if (applist.CheckedItems.Count > 0)
            {
                for (int i = 0; i < applist.Items.Count; i++)
                {
                    if (applist.GetItemChecked(i))
                    {
                        selectedAddons.Add(addons[i]);
                    }
                }

                SelectorForm f = new SelectorForm(this);
                f.ShowDialog(this);

                if (CurrentRestorePath != "")
                {
                    if (Directory.Exists(CurrentRestorePath))
                    {
                        CloneHelper f2 = new CloneHelper(this, CloneType.Restore);
                        f2.ShowDialog(this);
                    }
                }
            }
        }
Example #2
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);
            }
        }