Example #1
0
 public void moveItems(String to)
 {
     if (toBeDeleted.Count == 0)
     {
         MessageBox.Show("Nothing selected to be moved!");
         return;
     }
     foreach (Button n in toBeDeleted)
     {
         String[] names = n.Tag.ToString().Split(',');
         SQLMan.deleteFromTable(names[0], names[1], names[2], names[3], names[4]);
         mainGrid.Children.Remove(n);
     }
     GenerateList();
     SQLMan.OpenTable(to);
     foreach (Button n in toBeDeleted)
     {
         String[] names = n.Tag.ToString().Split(',');
         SQLMan.insertFromForm(names[0], names[1], names[2], names[3], names[4]);
     }
     SQLMan.OpenTable(currGrp);
     toBeDeleted.Clear();
     GenerateList();
 }
Example #2
0
 public GroupListScreen(SQLiteManager SQLman, String currentGroup)
 {
     InitializeComponent();
     SQLMan = SQLman;
     SQLMan.OpenTable(currentGroup);
     initGrid();
     GenerateList();
     menu = new MenuBar(SQLMan, this);
     menu.generateGroups(CopyJobs);
     menu.generateGroups(MoveJobs);
     this.Title   = currentGroup;
     currGrp      = currentGroup;
     IsOpen       = true;
     this.Closed += new EventHandler(GLSwin_Close);
 }