Ejemplo n.º 1
0
 public bool AddGroup(string groupName, string[] paths)
 {
     if (paths == null || paths.Length == 0)
     {
         return(false);
     }
     GroupsManager.AddGroup(groupName, paths);
     return(true);
 }
Ejemplo n.º 2
0
        private void buttonOK_Click(object sender, EventArgs e)
        {
            string key     = textBox1.Text;
            int    num     = 0;
            string tempKey = key;

            while (GroupsManager.GetGroup(tempKey) != null)
            {
                tempKey = key + " (" + ++num + ")";
            }
            key = tempKey;
            GroupsManager.AddGroup(key, chkAllTabs.Checked
                    ? Tabs.Select(item => item.CurrentPath)
                    : new string[] { newPath });
        }