Ejemplo n.º 1
0
        public void UpdateLists(GUIModelDiff model)
        {
            //Local Missing
            listBox_showDiff_local_missingFiles.Items.Clear();
            foreach(FTP_FAF missingFAF in model.CurrentLists.MissingLocalFAFs) {
                listBox_showDiff_local_missingFiles.Items.Add(missingFAF.RelativePath);
            }

            //Remote Missing
            listBox_showDiff_remote_missingFiles.Items.Clear();
            foreach(FAF missingFAF in model.CurrentLists.MissingRemoteFAFs) {
                listBox_showDiff_remote_missingFiles.Items.Add(missingFAF.Name);
            }

            //Local to download
            listBox_showDiff_local_filesToDownload.Items.Clear();
            foreach (FTP_FAF s in model.FilesToDownload) {
                listBox_showDiff_local_filesToDownload.Items.Add(s.RelativePath);
            }

            //Remote to upload
            listBox_showDiff_remote_filesToUpload.Items.Clear();
            foreach (FAF s in model.FilesToUpload) {
                listBox_showDiff_remote_filesToUpload.Items.Add(s.Name);
            }
        }
Ejemplo n.º 2
0
        public GUIDiffView(GUIModelDiff model, GUIMainController _controller)
        {
            InitializeComponent();

            Controller = new GUIDiffController(this, model, _controller);

            RegisterCustomEvents();
        }
Ejemplo n.º 3
0
        public GUIModel()
        {
            SettingsModel = new SettingsModel();

            DiffModel = new GUIModelDiff();

            AddonList = new List<Addon>();
            SelectedAddonIndex = -1;

            CurrentAddonName = "";
            CurrentDirectoryName = "";
            CurrentFirstUploaded = "";
            CurrentLastUpdated = "";
            CurrentVersion = "";
            CurrentAddonType = Addon.AddonType.Addons;
            CurrentDLType = Addon.DownloadType.FastDL;

            CurrentFileList = new List<FAF>();
        }
Ejemplo n.º 4
0
 public GUIDiffController(GUIDiffView view, GUIModelDiff model, GUIMainController mainController)
 {
     _view = view;
     Model = model;
     _controller = mainController;
 }