Exemplo n.º 1
0
        public static void ShowModelDialog(Repository repository, String rootPath = null)
        {
            if (repository == null)
            {
                return;
            }

            try
            {
                DiffDialog           dlg   = new DiffDialog();
                FileManagerViewModel model = new FileManagerViewModel(repository, rootPath);
                model.Owner     = dlg;
                dlg.DataContext = model;
                dlg.ShowDialog();
            }
            catch (Exception ee)
            {
                Trace.WriteLine("### [" + ee.Source + "] Exception: " + ee.Message);
                Trace.WriteLine("### " + ee.StackTrace);
            }
        }
Exemplo n.º 2
0
 /// <summary>
 /// 查看有改动的文件;
 /// </summary>
 public void Diff(String path = null)
 {
     DiffDialog.ShowModelDialog(this.TheRepository, path);
 }