コード例 #1
0
        public TaskbarFlow()
        {
            InitializeComponent();

            _groups = new ProcessGroupManager(this);

            this.VerticalScroll.SmallChange   = this.VerticalScroll.LargeChange = this.Height;
            this.HorizontalScroll.SmallChange = this.HorizontalScroll.LargeChange = this.Width;

            try
            {
                string path = GetTempIconsFolder();
                if (System.IO.Directory.Exists(path))
                {
                    foreach (string file in Directory.EnumerateFiles(path, "*.ico"))
                    {
                        File.Delete(file);
                    }
                }
            }
            catch
            {
                // just ignore this
            }
        }
コード例 #2
0
 public static Dictionary<String, GroupManager> BuildTheGroupManagerDictionary(Network net)
 {
     GroupManager gmgr;
     Dictionary<String, GroupManager> groupManagers = new Dictionary<string, GroupManager>();
     bool isMacro = net.IsMacro;
     if (!isMacro || ProcessGroupManager.SupportsMacros)
     {
         gmgr = new ProcessGroupManager(net);
         groupManagers.Add(gmgr.getManagerName(), gmgr);
     }
     if (!isMacro || PageGroupManager.SupportsMacros)
     {
         gmgr = new PageGroupManager(net);
         groupManagers.Add(gmgr.getManagerName(), gmgr);
     }
     if (!isMacro || AnnotationGroupManager.SupportsMacros)
     {
         gmgr = new AnnotationGroupManager(net);
         groupManagers.Add(gmgr.getManagerName(), gmgr);
     }
     return groupManagers;
 }