Exemple #1
0
        /**<summary>用于处理数据列表发生变化后的事件</summary>**/
        private void LoadDir(string message)
        {
            PathBar.Text = Adb.Path;
            if (ShowWarnMessage(message))
            {
                if (Check())
                {
                    OpenDir(Adb.GetUpperDir(Adb.Path));
                }
            }

            Dispatcher.CurrentDispatcher.Invoke(() =>
            {
                FileList.ItemsSource = FileListData;
                if (SelectedFile.ContainsKey(Adb.Path))
                {
                    Go2File(SelectedFile[Adb.Path]);
                }
            }, DispatcherPriority.ContextIdle);

            FileList.Focus();
            DefaultStatus();
        }
Exemple #2
0
 /**<summary>上一级目录</summary>**/
 private void Upper() => OpenDir(Adb.GetUpperDir(Adb.Path));