Ejemplo n.º 1
0
        private void Add()
        {
            wndProgressBar wpb = new wndProgressBar("Add Items...", "Please Wait", arrFiles.Length);

            if (string.IsNullOrEmpty(this.tagName))
            {
                //添加项目
                foreach (string s in this.arrFiles)
                {
                    Manage.WindowMain.Recent.Children.Add(Manage.AddItem(s));
                    wpb.Increase();
                }
                wpb.Increase();
            }
            else
            {
                Item item;
                //添加项目
                foreach (string s in this.arrFiles)
                {
                    item = Manage.AddItem(s, null, null, this.tagName);

                    Manage.FindAndInsert(item);
                    wpb.Increase();
                }
                wpb.Increase();
            }
        }
Ejemplo n.º 2
0
 private void btnDone_Click(object sender, RoutedEventArgs e)
 {
     if (!string.IsNullOrEmpty(ItemName.Trim()) && !string.IsNullOrEmpty(Path.Trim()))
     {
         Manage.WindowMain.Recent.Children.Add(Manage.AddItem(Path, ItemName, Arguments));
         this.Close();
     }
     else
     {
         Tip.ShowFixed(this, "Please checkout information");
     }
 }
        private void Add()
        {
            wndProgressBar wpb = new wndProgressBar("Add Items...", "Please Wait", arrFiles.Length);

            Item item;

            //添加项目
            foreach (string s in this.arrFiles)
            {
                item = Manage.AddItem(s, null, null, this.tagName);

                if (item != null)
                {
                    Manage.FindAndInsert(item);
                }
                wpb.Increase();
            }
            wpb.Increase();
        }