Beispiel #1
0
        public void LoadSave(MasterSaveModel masterSave)
        {
            FullCleanupSignal.Dispatch();

            foreach (SaveLineModel save in masterSave.AllLines)
            {
                LineModel lineModel = (LineModel)save;
                ProjectService.CreateLine(lineModel);
                LineAddedSignal.Dispatch(lineModel);
            }
        }
Beispiel #2
0
 public override void Execute()
 {
     if (SaveManager.IsSaveAvailable())
     {
         DialogManager.ShowAlert("", OnAffirmativeClicked, "Yes", "Project unsaved, save changes to file?",
                                 MaterialIconHelper.GetIcon(MaterialIconEnum.INFO_OUTLINE), OnDismissiveClicked, "No");
     }
     else
     {
         FullCleanupSignal.Dispatch();
     }
 }
Beispiel #3
0
        public override void OnRegister()
        {
            base.OnRegister();
            View.PointerInfoSignal.AddListener(OnPointerInfoSignal);
            View.TogglePanelSignal.AddListener(OnTogglePanelSignal);
            View.LineSelectedSignal.AddListener(OnLineSelected);
            View.LineDeletedSignal.AddListener(OnLineDeletedRequested);
            View.LineUnSelectedSignal.AddListener(OnLineUnselected);
            View.LineCopiedSignal.AddListener(OnLineCopiedRequested);
            View.LineResetSignal.AddListener(OnLineResetRequested);

            FullCleanupSignal.AddListener(OnFullCleanupReceived);
            AddLineSignal.AddListener(OnLineAdded);
            LineAddedSignal.AddListener(OnLineAdded);
            UpdateLineSignal.AddListener(OnUpdateLineReceived);
            LineDeletedSignal.AddListener(OnLineDeletedReceived);
            View.Initialize();
        }
Beispiel #4
0
 private void OnDismissiveClicked()
 {
     FullCleanupSignal.Dispatch();
 }
Beispiel #5
0
 public void Initialize()
 {
     AddLineSignal.AddListener(OnAddLineReceived);
     FullCleanupSignal.AddListener(OnFullCleanup);
 }