Пример #1
0
 private void Prepare()
 {
     gop = new OperatorEx();
     gop.Prepare(DataGrid);
     gop.AddColumn(@"Name", @"属性");
     gop.AddColumn(@"Value", @"値");
     gop.CreateColumns();
     top = new XMLTreeEx();
     top.Prepare(TreeView);
     top.SetGrid(gop);
 }
Пример #2
0
        private void Prepare()
        {
            gop = new OperatorEx();
            gop.Prepare(grid);
            gop.AddColumn(@"FileName", @"ファイル名");
            gop.CreateColumns();
            top = new FileSystemTreeEx();
            top.Prepare(tree);
            top.SetGrid(gop);
            top.Tree(@"C:\");

            grid.SelectedCellsChanged += CellChanged;
            button.Click += ButtonClick;
        }
Пример #3
0
    public void Init()
    {
        Drives.ItemsSource = Directory.GetLogicalDrives().ToList();
        var fileListOperator = new OperatorEx();

        fileListOperator.Prepare(FileList);
        fileListOperator.AddColumn(@"FileName", FileNameColumnCaption);
        fileListOperator.CreateColumns();
        FileList.RowHeight = FontSize + RowHeightPlus;
        driveTreeOperator  = new FileSystemTreeEx {
            AppendErrorDelegate = AppendErrorDelegate
        };
        driveTreeOperator.Prepare(DriveTree);
        driveTreeOperator.GridOperator      = fileListOperator;
        driveTreeOperator.FileFullPathInput = FileFullPathInput;
        driveTreeOperator.CreateNewFile     = CreateNewFile;
        OpenButton.Content = CreateNewFile ? NewFileButtonCaption : OpenButtonCaption;
    }