예제 #1
0
        private void bmptestBump(object sender, RoutedEventArgs e)
        {
            json = getTools.openJSON((Projects.SelectedItem as User).Name);
            help = getTools.getjsonVersion(json);

            int choice = (int)options.EnumProperty;

            if (choice == 0)
            {
                System.Windows.MessageBox.Show("Trivial Bump");
            }
            else if (choice == 1)
            {
                System.Windows.MessageBox.Show("Minor Bump");
            }
            else if (choice == 2)
            {
                System.Windows.MessageBox.Show("Major Bump");
            }
            else if (choice == 3)
            {
                System.Windows.MessageBox.Show("Rewrite Bump");
            }
            help.toArray();
            help.bumpTrivial();
            help.toString();
            List <string> test = getTools.GetDirectories(selected);

            try { help2 = getTools.bumpChildrenTrivial((Projects.SelectedItem as User).Name); } catch (System.IO.DirectoryNotFoundException) { Console.WriteLine(); }
            getTools.writejsonVersion(help);
            getTools.writechildVersion(help2);
            getTools.writeOtherDep(json, selected);
            //}
            // getTools.verify((Projects.SelectedItem as User).Name);
        }