コード例 #1
0
ファイル: HiddenLayersConfig.cs プロジェクト: neismit/emds
 private static void xcecac585893337d9(DependencyObject x73f821c71fe1e676, DependencyPropertyChangedEventArgs xfbf34718e704c6bc)
 {
     int num;
     bool flag;
     HiddenLayersConfig config = x73f821c71fe1e676 as HiddenLayersConfig;
     if ((((uint) num) & 0) == 0)
     {
         goto Label_0170;
     }
     goto Label_00E8;
     Label_002D:
     App.Services.FairEvent<xa443afcc736e1f3e>(new xa443afcc736e1f3e());
     if (-1 != 0)
     {
         return;
     }
     goto Label_0170;
     Label_009F:
     flag = num >= config.layersList.Items.Count;
     if (((((uint) num) - ((uint) flag)) <= uint.MaxValue) && flag)
     {
         goto Label_002D;
     }
     int count = config.layersList.Items.Count;
     Label_0067:
     flag = count > num;
     if (((uint) num) > uint.MaxValue)
     {
         goto Label_011E;
     }
     if (flag)
     {
         config.layersList.Items.RemoveAt(config.layersList.Items.Count - 1);
         count--;
         goto Label_0067;
     }
     goto Label_002D;
     Label_00E8:
     if (!flag)
     {
         goto Label_0134;
     }
     if (((uint) num) < 0)
     {
         goto Label_002D;
     }
     goto Label_009F;
     Label_011E:
     if (count < num)
     {
         LayerConfig newItem = new LayerConfig {
             ActivationFunction = { Xml = config.ActivationFunction.Xml }
         };
         config.layersList.Items.Add(newItem);
         count++;
         if ((((uint) num) | 0x7fffffff) != 0)
         {
             goto Label_011E;
         }
         goto Label_0170;
     }
     goto Label_009F;
     Label_0134:
     count = config.layersList.Items.Count;
     goto Label_011E;
     Label_0170:
     num = (int) xfbf34718e704c6bc.NewValue;
     flag = num <= config.layersList.Items.Count;
     if (0 != 0)
     {
         goto Label_0134;
     }
     goto Label_00E8;
 }
コード例 #2
0
ファイル: NetConfig.cs プロジェクト: neismit/emds
        private void x628e6c716ec340be(int xf3efd21c486a5cce, object x11d58b056c032b03)
        {
            int num = xf3efd21c486a5cce;
            switch (num)
            {
                case 1:
                    this.inConfig = (LayerConfig) x11d58b056c032b03;
                    return;

                case 2:
                    this.hiddenConfig = (HiddenLayersConfig) x11d58b056c032b03;
                    if (-2147483648 == 0)
                    {
                        break;
                    }
                    return;

                case 3:
                    this.outConfig = (LayerConfig) x11d58b056c032b03;
                    return;

                default:
                    if (((uint) num) <= uint.MaxValue)
                    {
                        break;
                    }
                    return;
            }
            this._x7dc3d9d322900926 = true;
        }