Exemplo n.º 1
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;
        }
Exemplo n.º 2
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;
    }