Beispiel #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);
 }
Beispiel #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;
        }
Beispiel #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;
    }
Beispiel #4
0
 public void SetGrid(OperatorEx arg)
 {
     grid = arg;
 }