Esempio n. 1
0
        public DiffWindow(string left, string right)
        {
            Data              = new DiffData();
            Data.DiffsLoaded += Data_DiffsLoaded;

            InitializeComponent();

            if (!string.IsNullOrEmpty(left))
            {
                OpenLeftPackage(left);
            }

            if (!string.IsNullOrEmpty(right))
            {
                OpenRightPackage(right);
            }

            IconManager = new IconManager();

#if DEBUG
            menuMain.Items.Add(FindResource("debugMenu"));
#endif
        }
Esempio n. 2
0
 public WebHost(DiffData data, int?port = null)
     : this(port)
 {
     DiffData = data ?? throw new ArgumentNullException(nameof(data));
 }
Esempio n. 3
0
 public DiffPackageItem(DiffData diffData, string path, DiffPart part)
 {
     DiffData = diffData ?? throw new ArgumentNullException(nameof(diffData));
     Path     = path ?? throw new ArgumentNullException(nameof(path));
     Part     = part;
 }