Пример #1
0
 private void lstTable_AfterItemCheckChange(object sender, TreeListItemEventArgs e)
 {
     if (e.Item.Checked)
     {
         CheckedItems(e.Item.Items);
     }
 }
Пример #2
0
        private void lstItems_ItemDoubleClick(object sender, TreeListItemEventArgs e)
        {
            var sysPath = System.Environment.GetFolderPath(Environment.SpecialFolder.System);
            var p       = new ProcessStartInfo();

            p.WorkingDirectory = sysPath;
            p.FileName         = "mstsc.exe";
            p.Arguments        = "/v:" + e.Item.Cells[1].Text;
            Process.Start(p);
        }
Пример #3
0
        private void lstPart_ItemDoubleClick(object sender, TreeListItemEventArgs e)
        {
            var file = e.Item.Tag as TemplateFile;

            if (file == null)
            {
                return;
            }

            if (OpenAct != null)
            {
                OpenAct(file);
            }
        }
Пример #4
0
        private void treeList2_DemandLoad(object sender, TreeListItemEventArgs e)
        {
            var ran = new Random();

            for (var i = 0; i < 5; i++)
            {
                var item = new TreeListItem();
                e.Item.Items.Add(item);
                item.Cells[0].Value = "文本数据文本数据" + (i + 1) + "文本数据文本数据文本数据";
                item.Cells[1].Value = DateTime.Today;
                item.Cells[2].Value = ran.Next(100);
                item.Cells[3].Value = ran.Next(100) % 2 == 0;

                item.ShowExpanded = true;
            }
        }
Пример #5
0
 private void lstObject_ItemCheckChanged(object sender, TreeListItemEventArgs e)
 {
     CheckItemsAct(lstObject.CheckedItems.Where(s => s.Tag is Table).Count());
 }