Esempio n. 1
0
        public void DoCopy()
        {
            return;

            BPTextBox tb = new BPTextBox(this.HisTBType);

            tb.Cursor    = Cursors.Hand;
            tb.HisTBType = this.HisTBType;
            tb.InitType();
            tb.Text   = this.Text;
            tb.Width  = this.Width;
            tb.Height = this.Height;

            tb.SetValue(Canvas.LeftProperty, (double)this.GetValue(Canvas.LeftProperty) + 15);
            tb.SetValue(Canvas.TopProperty, (double)this.GetValue(Canvas.TopProperty) + 15);
            Canvas s1c = this.Parent as Canvas;

            try
            {
                s1c.Children.Add(tb);
            }
            catch
            {
                s1c.Children.Remove(tb);
            }
        }
Esempio n. 2
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="name"></param>
        public BPAttachment(string NoOfObj, string name, string exts, double tbWidth, string _saveTo)
        {
            if (tbWidth < 20)
            {
                tbWidth = 20;
            }

            this.Name = NoOfObj;
            StackPanel sp = new StackPanel();

            sp.Name          = "sp" + NoOfObj;
            sp.Orientation   = Orientation.Horizontal;
            this.HisTB       = new BPTextBox();
            this.HisTB.Name  = "No" + NoOfObj;
            this.HisTB.Width = tbWidth;
            this.Exts        = exts;
            this.SaveTo      = _saveTo;
            sp.Children.Add(this.HisTB);
            Button btn = new Button();

            btn.Name    = "btns" + NoOfObj;
            btn.Content = "浏览-上传-删除";
            sp.Children.Add(btn);
            this.Content = sp;
        }
Esempio n. 3
0
        private void OKButton_Click(object sender, RoutedEventArgs e)
        {
            if (this.listBox1.SelectedItems.Count == 0)
            {
                MessageBox.Show("请选择要批处理的项目,Ctrl+ 鼠标可以实现多选。", "提示", MessageBoxButton.OK);
                return;
            }

            string nodeIDs = "";

            foreach (ListBoxItem lb in this.listBox1.SelectedItems)
            {
                nodeIDs += lb.Tag + ",";
            }

            BPTextBox tb = Glo.currEle as BPTextBox;

            // this.DialogResult = true;
        }