Exemplo n.º 1
0
        public UcBatchListBox()
        {
            FileExplorer = new FileExplorer.Controller.Controller(new FileExplorer.Model.DirInfo(new DirectoryInfo(@"../../XML")));
            InitializeComponent();
            BatchListFileExplorer.DataContext = FileExplorer;

            DependencyPropertyDescriptor rootDirectoryDescriptor =
                DependencyPropertyDescriptor.FromProperty(UcBatchListBox.RootDirectoryProperty,
                                                          typeof(UcBatchListBox));

            rootDirectoryDescriptor.AddValueChanged(this, RootDirectoryChange);

            DependencyPropertyDescriptor currentProfilDescriptor =
                DependencyPropertyDescriptor.FromProperty(UcBatchListBox.CurrentProfilProperty,
                                                          typeof(UcBatchListBox));

            currentProfilDescriptor.AddValueChanged(this, CurrentProfilChange);
        }
Exemplo n.º 2
0
 public UcAdminPannel()
 {
     FileExplorer = new FileExplorer.Controller.Controller();
     InitializeComponent();
     RootDirectoryExplorer.DataContext = FileExplorer;
 }