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