예제 #1
0
        // ======== On Switched To ========= //

        public override void OnSwitchedTo()
        {
            MainTabbedPage.OnAnySwitchedTo(this);
            MainTabbedPage.theModelEntryPage.SyncNoisePicker(noisePicker);
            if (!Exec.IsExecuting() &&                                          // we could be waiting on a continuation! StartAction would switch us right back to this page even if it does not start a thread!
                currentModelInfo != MainTabbedPage.theModelEntryPage.modelInfo) // forkWorker: we can compute the chart concurrently
            {
                MainTabbedPage.theModelEntryPage.StartAction(forkWorker: true, switchToChart: false, switchToOutput: false, autoContinue: false);
            }
            KChartHandler.ChartUpdate(null);
        }
예제 #2
0
 public override void OnSwitchedTo()
 {
     MainTabbedPage.OnAnySwitchedTo(this);
     if (currentModelInfo != MainTabbedPage.theModelEntryPage.modelInfo)
     {
         OutputClear();
         MainTabbedPage.theModelEntryPage.StartAction(forkWorker: true, switchToChart: false, switchToOutput: false, autoContinue: true);
     }
     else
     {
         currentOutputAction.action();
     }
 }
예제 #3
0
 public override void OnSwitchedTo()
 {
     MainTabbedPage.OnAnySwitchedTo(this);
     listView.ItemsSource = docs;
 }
예제 #4
0
 public override void OnSwitchedTo()
 {
     MainTabbedPage.OnAnySwitchedTo(this);
     SetTitle(this.title);
     Gui.gui.GraphUpdate();
 }
예제 #5
0
        //private static Dictionary<string, Dictionary<string, bool>> visibilityCache =
        //    new Dictionary<string, Dictionary<string, bool>>();

        //public Dictionary<string,bool> Visibility() {
        //    string theModel = modelInfo.title;
        //    lock (visibilityCache) { if (!visibilityCache.ContainsKey(theModel)) visibilityCache[theModel] = new Dictionary<string, bool>(); }
        //    return visibilityCache[theModel];
        //}

        public override void OnSwitchedTo()
        {
            MainTabbedPage.OnAnySwitchedTo(this);
            SyncNoisePicker(noisePicker);
        }
예제 #6
0
 public override void OnSwitchedTo()
 {
     MainTabbedPage.OnAnySwitchedTo(this);
     RegenerateList();
 }