Exemple #1
0
 public void SetState(IWidgetState state)
 {
     if (state is BlankWidgetState widgetState)
     {
         // nothing is currentlt stored in state, hence do nothing
     }
     else
     {
         Console.WriteLine("Inflation rejected since non BlankWidgetState given for inflation...");
     }
 }
Exemple #2
0
 public void SetState(IWidgetState state)
 {
     if (state is DataExportWidgetState widgetState)
     {
         if (widgetState.DataExportConfig_ is DataExportConfig plotConfig)
         {
             mDataExportConfig = plotConfig;
             SetupDataView();
         }
         else
         {
             Console.WriteLine("Inflation rejected since non DataExportConfig given for inflation...");
         }
     }
     else
     {
         Console.WriteLine("Inflation rejected since non DataExportWidgetState given for inflation...");
     }
 }
 public void SetState(IWidgetState state)
 {
     if (state is OxyPlotWidgetState widgetState)
     {
         if (widgetState.PlotConfig is LinePlotConfig plotConfig)
         {
             mLinePlotConfig = plotConfig;
             SetupPlotView();
         }
         else
         {
             Console.WriteLine("Inflation rejected since non LinePlotConfig given for inflation...");
         }
     }
     else
     {
         Console.WriteLine("Inflation rejected since non OxyPlotWidgetState given for inflation...");
     }
 }