コード例 #1
0
ファイル: ChartPage.cs プロジェクト: luca-cardelli/KaemikaXM
        // ======== 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();
 }