コード例 #1
0
ファイル: DiagramImage.cs プロジェクト: JBTech/Dot.Utility
 public override void ChangeValue(ChangedEventArgs e, bool undo)
 {
     switch (e.SubHint)
     {
         case 0x641:
             {
                 this.Image = (System.Drawing.Image)e.GetValue(undo);
                 return;
             }
         case 0x642:
             {
                 this.ResourceManager = (System.Resources.ResourceManager)e.GetValue(undo);
                 return;
             }
         case 0x643:
             {
                 this.Name = (string)e.GetValue(undo);
                 return;
             }
         case 0x644:
             {
                 this.Alignment = e.GetInt(undo);
                 return;
             }
         case 0x645:
             {
                 this.AutoResizes = (bool)e.GetValue(undo);
                 return;
             }
     }
     base.ChangeValue(e, undo);
 }
コード例 #2
0
ファイル: IconicNode.cs プロジェクト: JBTech/Dot.Utility
 public override void ChangeValue(ChangedEventArgs e, bool undo)
 {
     switch (e.SubHint)
     {
         case 0xa5b:
             {
                 this.setDraggableLabel((bool)e.GetValue(undo), true);
                 return;
             }
         case 0xa5c:
             {
                 this.Icon = (DiagramShape)e.GetValue(undo);
                 return;
             }
         case 0xa5d:
             {
                 this.Label = (DiagramText)e.GetValue(undo);
                 return;
             }
         case 0xa5e:
             {
                 this.Port = (DiagramPort)e.GetValue(undo);
                 return;
             }
         case 0xa5f:
             {
                 this.setLabelOffset(e.GetSize(undo), true);
                 return;
             }
     }
     base.ChangeValue(e, undo);
 }
コード例 #3
0
ファイル: PieGraph.cs プロジェクト: JBTech/Dot.Utility
 public override void ChangeValue(ChangedEventArgs e, bool undo)
 {
     switch (e.SubHint)
     {
         case 0x5ab:
             {
                 this.StartAngle = e.GetFloat(undo);
                 return;
             }
         case 0x5ac:
             {
                 this.SweepAngle = e.GetFloat(undo);
                 return;
             }
         case 0x5ad:
             {
                 this.ResizableStartAngle = (bool)e.GetValue(undo);
                 return;
             }
         case 0x5ae:
             {
                 this.ResizableEndAngle = (bool)e.GetValue(undo);
                 return;
             }
     }
     base.ChangeValue(e, undo);
 }
コード例 #4
0
ファイル: Balloon.cs プロジェクト: JBTech/Dot.Utility
 public override void ChangeValue(ChangedEventArgs e, bool undo)
 {
     switch (e.SubHint)
     {
         case 2310:
             {
                 base.Initializing = true;
                 this.Anchor = (DiagramShape)e.GetValue(undo);
                 base.Initializing = false;
                 return;
             }
         case 0x907:
             {
                 base.Initializing = true;
                 this.Corner = e.GetSize(undo);
                 base.Initializing = false;
                 return;
             }
         case 0x908:
             {
                 base.Initializing = true;
                 this.BaseWidth = e.GetFloat(undo);
                 base.Initializing = false;
                 return;
             }
     }
     base.ChangeValue(e, undo);
 }
コード例 #5
0
ファイル: CylinderGraph.cs プロジェクト: JBTech/Dot.Utility
 public override void ChangeValue(ChangedEventArgs e, bool undo)
 {
     switch (e.SubHint)
     {
         case 0x5c9:
             {
                 this.MinorRadius = e.GetFloat(undo);
                 return;
             }
         case 0x5ca:
             {
                 this.Orientation = (System.Windows.Forms.Orientation)e.GetValue(undo);
                 return;
             }
         case 0x5cb:
             {
                 this.Perspective = (Perspective)e.GetValue(undo);
                 return;
             }
         case 0x5cc:
             {
                 this.ResizableRadius = (bool)e.GetValue(undo);
                 return;
             }
     }
     base.ChangeValue(e, undo);
     base.ResetPath();
 }
コード例 #6
0
ファイル: TriangleGraph.cs プロジェクト: JBTech/Dot.Utility
 public override void ChangeValue(ChangedEventArgs e, bool undo)
 {
     switch (e.SubHint)
     {
         case 0x597:
             {
                 this.A = e.GetPoint(undo);
                 return;
             }
         case 0x598:
             {
                 this.B = e.GetPoint(undo);
                 return;
             }
         case 0x599:
             {
                 this.C = e.GetPoint(undo);
                 return;
             }
         case 0x59a:
             {
                 PointF[] tfArray1 = (PointF[])e.GetValue(undo);
                 this.myPoints = tfArray1;
                 base.ResetPath();
                 base.InvalidBounds = true;
                 this.Changed(0x59a, 0, null, DiagramShape.NullRect, 0, null, DiagramShape.NullRect);
                 return;
             }
     }
     base.ChangeValue(e, undo);
 }
コード例 #7
0
ファイル: GeneralNodePort.cs プロジェクト: JBTech/Dot.Utility
 public override void ChangeValue(ChangedEventArgs e, bool undo)
 {
     switch (e.SubHint)
     {
         case 2430:
             {
                 this.Name = (string)e.GetValue(undo);
                 return;
             }
         case 0x97f:
             {
                 this.Label = (GeneralNodePortLabelText)e.GetValue(undo);
                 return;
             }
         case 0x980:
             {
                 this.SideIndex = e.GetInt(undo);
                 return;
             }
         case 0x981:
             {
                 this.LeftSide = (bool)e.GetValue(undo);
                 return;
             }
     }
     base.ChangeValue(e, undo);
 }
コード例 #8
0
ファイル: DiagramNode.cs プロジェクト: JBTech/Dot.Utility
 public override void ChangeValue(ChangedEventArgs e, bool undo)
 {
     switch (e.SubHint)
     {
         case 2000:
             {
                 this.UserFlags = e.GetInt(undo);
                 return;
             }
         case 0x7d1:
             {
                 this.UserObject = e.GetValue(undo);
                 return;
             }
         case 0x7d2:
             {
                 this.ToolTipText = (string)e.GetValue(undo);
                 return;
             }
         case 0x7d3:
             {
                 this.PropertiesDelegatedToSelectionObject = (bool)e.GetValue(undo);
                 return;
             }
         case 0x7d4:
             {
                 this.PartID = e.GetInt(undo);
                 return;
             }
     }
     base.ChangeValue(e, undo);
 }
コード例 #9
0
 protected virtual void OnChanged(ChangedEventArgs e)
 {
     if (Changed != null)
     {
         Changed(this, e);
     }
 }
コード例 #10
0
ファイル: MainForm.cs プロジェクト: megakid/Exceptionless.Net
        private void SettingsOnChanged(object sender, ChangedEventArgs<KeyValuePair<string, string>> args) {
            if (logTextBox.InvokeRequired) {
                logTextBox.Invoke(new EventHandler<ChangedEventArgs<KeyValuePair<string, string>>>(SettingsOnChanged), sender, args);
                return;
            }

            logTextBox.AppendText("Configuration Updated.");
        }
コード例 #11
0
ファイル: TextNode.cs プロジェクト: JBTech/Dot.Utility
 public override void ChangeValue(ChangedEventArgs e, bool undo)
 {
     switch (e.SubHint)
     {
         case 0xaf1:
             {
                 this.Label = (DiagramText)e.GetValue(undo);
                 return;
             }
         case 0xaf2:
             {
                 this.Background = (DiagramShape)e.GetValue(undo);
                 return;
             }
         case 0xaf3:
             {
                 this.TopPort = (DiagramPort)e.GetValue(undo);
                 return;
             }
         case 0xaf4:
             {
                 this.RightPort = (DiagramPort)e.GetValue(undo);
                 return;
             }
         case 0xaf5:
             {
                 this.BottomPort = (DiagramPort)e.GetValue(undo);
                 return;
             }
         case 0xaf6:
             {
                 this.LeftPort = (DiagramPort)e.GetValue(undo);
                 return;
             }
         case 0xaf7:
             {
                 base.Initializing = true;
                 this.TopLeftMargin = e.GetSize(undo);
                 base.Initializing = false;
                 return;
             }
         case 0xaf8:
             {
                 base.Initializing = true;
                 this.BottomRightMargin = e.GetSize(undo);
                 base.Initializing = false;
                 return;
             }
         case 0xaf9:
             {
                 this.setAutoResizes((bool)e.GetValue(undo), true);
                 return;
             }
     }
     base.ChangeValue(e, undo);
 }
コード例 #12
0
 public override void ChangeValue(ChangedEventArgs e, bool undo)
 {
     if (e.SubHint == 0x58d)
     {
         this.Corner = e.GetSize(undo);
     }
     else
     {
         base.ChangeValue(e, undo);
     }
 }
コード例 #13
0
ファイル: DiagramControl.cs プロジェクト: JBTech/Dot.Utility
 public override void ChangeValue(ChangedEventArgs e, bool undo)
 {
     if (e.SubHint == 0x76d)
     {
         this.ControlType = (Type)e.GetValue(undo);
     }
     else
     {
         base.ChangeValue(e, undo);
     }
 }
コード例 #14
0
ファイル: BoxPort.cs プロジェクト: JBTech/Dot.Utility
 public override void ChangeValue(ChangedEventArgs e, bool undo)
 {
     if (e.SubHint == 0x8a3)
     {
         this.LinkPointsSpread = (bool)e.GetValue(undo);
     }
     else
     {
         base.ChangeValue(e, undo);
     }
 }
コード例 #15
0
ファイル: HexagonGraph.cs プロジェクト: JBTech/Dot.Utility
 public override void ChangeValue(ChangedEventArgs e, bool undo)
 {
     switch (e.SubHint)
     {
         case 0x5a2:
             {
                 this.DistanceLeft = e.GetFloat(undo);
                 return;
             }
         case 0x5a3:
             {
                 this.DistanceRight = e.GetFloat(undo);
                 return;
             }
         case 0x5a4:
             {
                 this.DistanceTop = e.GetFloat(undo);
                 return;
             }
         case 0x5a5:
             {
                 this.DistanceBottom = e.GetFloat(undo);
                 return;
             }
         case 0x5a6:
             {
                 this.Orientation = (System.Windows.Forms.Orientation)e.GetValue(undo);
                 return;
             }
         case 0x5a7:
             {
                 this.ReshapeBehavior = (HexagonGraphReshapeBehavior)e.GetValue(undo);
                 return;
             }
         case 0x5a8:
             {
                 this.ReshapableCorner = (bool)e.GetValue(undo);
                 return;
             }
         case 0x5a9:
             {
                 this.KeepsLengthwiseSymmetry = (bool)e.GetValue(undo);
                 return;
             }
         case 1450:
             {
                 this.KeepsCrosswiseSymmetry = (bool)e.GetValue(undo);
                 return;
             }
     }
     base.ChangeValue(e, undo);
 }
コード例 #16
0
 void Map_ChunkChanged(object sender, ChangedEventArgs<IChunk> e)
 {
     if (e.OldValue != null)
     {
         ChunkRenderer renderer = _renderers.FirstOrDefault(i => i.Chunk == e.OldValue);
         if (renderer != null) _renderers.Remove(renderer);
     }
     if (e.NewValue != null)
     {
         ChunkRenderer renderer = new ChunkRenderer(e.NewValue, _textureAtlas);
         _renderers.Add(renderer);
     }
 }
コード例 #17
0
ファイル: OctagonGraph.cs プロジェクト: JBTech/Dot.Utility
 public override void ChangeValue(ChangedEventArgs e, bool undo)
 {
     switch (e.SubHint)
     {
         case 0x5bd:
             {
                 this.Corner = e.GetSize(undo);
                 return;
             }
         case 1470:
             {
                 this.ReshapableCorner = (bool)e.GetValue(undo);
                 return;
             }
     }
     base.ChangeValue(e, undo);
 }
コード例 #18
0
ファイル: NodeIcon.cs プロジェクト: JBTech/Dot.Utility
 public override void ChangeValue(ChangedEventArgs e, bool undo)
 {
     switch (e.SubHint)
     {
         case 2050:
             {
                 this.MinimumIconSize = e.GetSize(undo);
                 return;
             }
         case 0x803:
             {
                 this.MaximumIconSize = e.GetSize(undo);
                 return;
             }
     }
     base.ChangeValue(e, undo);
 }
コード例 #19
0
ファイル: DigramGraph.cs プロジェクト: JBTech/Dot.Utility
 public override void ChangeValue(ChangedEventArgs e, bool undo)
 {
     int num1 = e.SubHint;
     if (num1 != 0x3e9)
     {
         switch (num1)
         {
             case 0x44d:
                 {
                     object obj1 = e.GetValue(undo);
                     if (!(obj1 is System.Drawing.Pen))
                     {
                         if (obj1 is GoPenInfo)
                         {
                             this.Pen = ((GoPenInfo)obj1).GetPen();
                         }
                         return;
                     }
                     this.Pen = (System.Drawing.Pen)obj1;
                     return;
                 }
             case 0x44e:
                 {
                     object obj2 = e.GetValue(undo);
                     if (!(obj2 is System.Drawing.Brush))
                     {
                         if (obj2 is GoBrushInfo)
                         {
                             this.Brush = ((GoBrushInfo)obj2).GetBrush();
                         }
                         return;
                     }
                     this.Brush = (System.Drawing.Brush)obj2;
                     return;
                 }
         }
         base.ChangeValue(e, undo);
     }
     else
     {
         base.ChangeValue(e, undo);
         this.ResetPath();
     }
 }
コード例 #20
0
ファイル: PlaybackService.cs プロジェクト: cmpute/XiamiTing
 /// <summary>
 /// 设置播放内容为播放列表或电台
 /// </summary>
 /// <param name="source">播放来源,null代表播放列表</param>
 public void SetPlaybackSource(RadioService source)
 {
     if (radio?.Radio == source?.Radio)
         return;
     var e = new ChangedEventArgs<IPlaylist>(radio ?? (IPlaylist)PlaylistService.Instance, source ?? (IPlaylist)PlaylistService.Instance);
     if (source == null)
     {
         radio = null;
         _isPlayingRadio = false;
     }
     else
     {
         radio = source;
         _isPlayingRadio = true;
     }
     PlaybackSourceChanged?.Invoke(this, e);
     InternalPlaybackSourceChanged(_isPlayingRadio);
     SkipNext();
 }
コード例 #21
0
ファイル: TextLine.cs プロジェクト: JBTech/Dot.Utility
 public override void ChangeValue(ChangedEventArgs e, bool undo)
 {
     switch (e.SubHint)
     {
         case 0x51f:
             {
                 this.RealLink = (Shapes.LineGraph)e.GetValue(undo);
                 return;
             }
         case 0x520:
             {
                 this.FromLabel = (DiagramShape)e.GetValue(undo);
                 return;
             }
         case 0x521:
             {
                 this.MidLabel = (DiagramShape)e.GetValue(undo);
                 return;
             }
         case 0x522:
             {
                 this.ToLabel = (DiagramShape)e.GetValue(undo);
                 return;
             }
         case 0x523:
             {
                 this.FromLabelCentered = (bool)e.GetValue(undo);
                 return;
             }
         case 0x524:
             {
                 this.MidLabelCentered = (bool)e.GetValue(undo);
                 return;
             }
         case 0x525:
             {
                 this.ToLabelCentered = (bool)e.GetValue(undo);
                 return;
             }
     }
     base.ChangeValue(e, undo);
 }
コード例 #22
0
ファイル: BasicNode.cs プロジェクト: JBTech/Dot.Utility
 public override void ChangeValue(ChangedEventArgs e, bool undo)
 {
     switch (e.SubHint)
     {
         case 0x835:
             {
                 this.setLabelSpot(e.GetInt(undo), true);
                 return;
             }
         case 0x836:
             {
                 this.Shape = (DiagramGraph)e.GetValue(undo);
                 return;
             }
         case 0x837:
             {
                 this.Label = (DiagramText)e.GetValue(undo);
                 return;
             }
         case 0x838:
             {
                 this.Port = (DiagramPort)e.GetValue(undo);
                 return;
             }
         case 0x839:
             {
                 base.Initializing = true;
                 this.MiddleLabelMargin = e.GetSize(undo);
                 base.Initializing = false;
                 return;
             }
         case 0x83a:
             {
                 this.setAutoResizes((bool)e.GetValue(undo), true);
                 return;
             }
     }
     base.ChangeValue(e, undo);
 }
コード例 #23
0
ファイル: CubeGraph.cs プロジェクト: JBTech/Dot.Utility
 public override void ChangeValue(ChangedEventArgs e, bool undo)
 {
     switch (e.SubHint)
     {
         case 0x5d3:
             {
                 this.Depth = e.GetSize(undo);
                 return;
             }
         case 0x5d4:
             {
                 this.Perspective = (Perspective)e.GetValue(undo);
                 return;
             }
         case 0x5d5:
             {
                 this.ReshapableDepth = (bool)e.GetValue(undo);
                 return;
             }
     }
     base.ChangeValue(e, undo);
 }
コード例 #24
0
 public override void ChangeValue(ChangedEventArgs e, bool undo)
 {
     switch (e.SubHint)
     {
         case 0x5ba:
             {
                 this.Skew = e.GetSize(undo);
                 return;
             }
         case 0x5bb:
             {
                 this.ReshapableSkew = (bool)e.GetValue(undo);
                 return;
             }
         case 0x5bc:
             {
                 this.Direction = (bool)e.GetValue(undo);
                 return;
             }
     }
     base.ChangeValue(e, undo);
     base.ResetPath();
 }
コード例 #25
0
ファイル: TrapezoidGraph.cs プロジェクト: JBTech/Dot.Utility
 public override void ChangeValue(ChangedEventArgs e, bool undo)
 {
     switch (e.SubHint)
     {
         case 1460:
             {
                 this.A = e.GetPoint(undo);
                 return;
             }
         case 0x5b5:
             {
                 this.B = e.GetPoint(undo);
                 return;
             }
         case 0x5b6:
             {
                 this.C = e.GetPoint(undo);
                 return;
             }
         case 0x5b7:
             {
                 this.D = e.GetPoint(undo);
                 return;
             }
         case 0x5b8:
             {
                 this.SetPoints((PointF[])e.GetValue(undo));
                 return;
             }
         case 0x5b9:
             {
                 this.Orientation = (System.Windows.Forms.Orientation)e.GetValue(undo);
                 return;
             }
     }
     base.ChangeValue(e, undo);
 }
コード例 #26
0
ファイル: SimpleNode.cs プロジェクト: JBTech/Dot.Utility
 public override void ChangeValue(ChangedEventArgs e, bool undo)
 {
     switch (e.SubHint)
     {
         case 0xa29:
             {
                 this.Text = (string)e.GetValue(undo);
                 return;
             }
         case 0xa2a:
             {
                 this.Icon = (DiagramShape)e.GetValue(undo);
                 return;
             }
         case 0xa2b:
             {
                 this.Label = (DiagramText)e.GetValue(undo);
                 return;
             }
         case 0xa2c:
             {
                 this.InPort = (DiagramPort)e.GetValue(undo);
                 return;
             }
         case 0xa2d:
             {
                 this.OutPort = (DiagramPort)e.GetValue(undo);
                 return;
             }
         case 0xa2e:
             {
                 this.setOrientation((System.Windows.Forms.Orientation)e.GetInt(undo), true);
                 return;
             }
     }
     base.ChangeValue(e, undo);
 }
コード例 #27
0
ファイル: CommentShape.cs プロジェクト: JBTech/Dot.Utility
 public override void ChangeValue(ChangedEventArgs e, bool undo)
 {
     switch (e.SubHint)
     {
         case 0x8fd:
             {
                 base.Initializing = true;
                 this.TopLeftMargin = e.GetSize(undo);
                 base.Initializing = false;
                 return;
             }
         case 0x8fe:
             {
                 base.Initializing = true;
                 this.BottomRightMargin = e.GetSize(undo);
                 base.Initializing = false;
                 return;
             }
         case 0x8ff:
             {
                 this.PartID = e.GetInt(undo);
                 return;
             }
         case 0x900:
             {
                 this.Background = (DiagramShape)e.GetValue(undo);
                 return;
             }
         case 0x901:
             {
                 this.Label = (DiagramText)e.GetValue(undo);
                 return;
             }
     }
     base.ChangeValue(e, undo);
 }
コード例 #28
0
ファイル: OpaqueForm.cs プロジェクト: radtek/MultiControl
        /*
         * public int UpdateResult(int key, string name, MyResult result)
         * {
         *  ArrayList resultList = FindResultByKey(key);
         *  if (resultList != null)
         *  {
         *      ResultItem item = FindItemByName(resultList, name);
         *      if (item != null)
         *      {
         *          if (item.Result != result)
         *          {
         *              item.Result = result;
         *              Invalidate();
         *          }
         *      }
         *  }
         *
         *  return 0;
         * }
         */

        public int AddResult(int key, string model, string nameOrg, MyResult result, float cost)
        {
            string name       = nameOrg;
            string additional = string.Empty;

            //Filter SUB ITEMS
            string[] subItemsResult = nameOrg.Split(':');
            if (subItemsResult.Count() > 1)
            {
                int count = subItemsResult.Count();
                name = subItemsResult[0].ToString();
                for (int i = 1; i < count - 1; i++)
                {
                    additional += subItemsResult[i].ToString();
                    additional += "|";
                }
                int length = additional.Length;
                additional = additional.Substring(0, length - 1);
            }

            ArrayList resultList = FindResultByKey(key);

            if (resultList == null)
            {
                mDictResult.Add(key, new ArrayList());
                resultList = mDictResult[key];

                mDictCycle.Add(key, 0);
                mDictTag.Add(key, string.Empty);
                mDictTotalCost.Add(key, 0.0f);
                mDictModel.Add(key, model);
            }
            //
            ResultItem item = FindItemByName(resultList, name);

            if (item != null)
            {
                item.Additional = additional;
                if (result == MyResult.WORKING)
                {
                    item.Result = result;
                    //Invalidate(new Rectangle(10, 30 + item.Index * 18, Width, 18));
                    //mCurrentWorkingIndex = item.Index;
                    mDictWorkingItem[key] = item;
                    if (key == CurrentKey)
                    {
                        Invalidate();
                    }
                    EventWaitHandle[0].Set();
                }
                else
                {
                    if (item.Result != result)
                    {
                        item.Result = result;
                        item.Cost   = cost;
                        if (key == CurrentKey)
                        {
                            Invalidate();
                        }
                        //Invalidate(new Rectangle(0, 30 + item.Index * 18, Width, 18));
                    }
                }
            }
            else
            {
                int index = resultList.Count;
                item            = new ResultItem(name, result, index, cost);
                item.Additional = additional;
                resultList.Add(item);
                if (result == MyResult.WORKING)
                {
                    //mCurrentWorkingIndex = index;
                    //mCycle = 0;
                    //mTag = string.Empty;
                    mDictCycle[key]       = 0;
                    mDictTag[key]         = string.Empty;
                    mDictWorkingItem[key] = item;
                    EventWaitHandle[0].Set();
                }
                else
                {
                    ;
                }
                mDictHeight[key] = HeadHeight + resultList.Count * LineHeight + FootHeight;
                if (key == CurrentKey)
                {
                    this.Height = mDictHeight[key];
                    Invalidate();
                }
            }

            if (OnItemChanged != null && key != -1)
            {
                ChangedEventArgs args = new ChangedEventArgs(key, string.Empty);
                args.Elapsed = GetTotalElapsedTestTime(key);// mDictTotalCost[key] + item.Cost;
                OnItemChanged(this, args);
            }

            return(resultList.Count);
        }
コード例 #29
0
 private void OnChangedEvent(object sender, ChangedEventArgs e)
 {
     _logger.Debug(e.FormatMessage());
     //_saveTrigger.Trigger();
     Save();
 }
コード例 #30
0
 partial void InternalSelectedChanged(ChangedEventArgs <HamburgerButtonInfo> e);
コード例 #31
0
 partial void InternalNavigationServiceChanged(ChangedEventArgs <INavigationService> e);
コード例 #32
0
 partial void InternalVisualStateWideDisplayModeChanged(ChangedEventArgs <SplitViewDisplayMode> e);
コード例 #33
0
 partial void InternalSecondaryButtonOrientationChanged(ChangedEventArgs <Orientation> e);
コード例 #34
0
 private void OnSettingsChanged(object sender, ChangedEventArgs <IRuntimeSettings> e)
 {
     ClearSettings(e.OldValue);
     ApplySettings(e.NewValue);
 }
コード例 #35
0
ファイル: ListGroup.cs プロジェクト: yycx0328/Dot.Utility
        public override void ChangeValue(ChangedEventArgs e, bool undo)
        {
            int num1 = e.SubHint;

            if (num1 != 0x3e9)
            {
                switch (num1)
                {
                case 0x9c5:
                {
                    base.Initializing = true;
                    this.Spacing      = e.GetFloat(undo);
                    base.Initializing = false;
                    return;
                }

                case 0x9c6:
                {
                    this.Alignment = e.GetInt(undo);
                    return;
                }

                case 0x9c7:
                {
                    base.Initializing = true;
                    object obj1 = e.GetValue(undo);
                    if (!(obj1 is Pen))
                    {
                        if (obj1 is DiagramGraph.GoPenInfo)
                        {
                            this.LinePen = ((DiagramGraph.GoPenInfo)obj1).GetPen();
                        }
                        goto Label_00BB;
                    }
                    this.LinePen = (Pen)obj1;
                    goto Label_00BB;
                }

                case 0x9c8:
                {
                    object obj2 = e.GetValue(undo);
                    if (!(obj2 is Pen))
                    {
                        if (obj2 is DiagramGraph.GoPenInfo)
                        {
                            this.BorderPen = ((DiagramGraph.GoPenInfo)obj2).GetPen();
                        }
                        return;
                    }
                    this.BorderPen = (Pen)obj2;
                    return;
                }

                case 0x9c9:
                {
                    object obj3 = e.GetValue(undo);
                    if (!(obj3 is System.Drawing.Brush))
                    {
                        if (obj3 is DiagramGraph.GoBrushInfo)
                        {
                            this.Brush = ((DiagramGraph.GoBrushInfo)obj3).GetBrush();
                        }
                        return;
                    }
                    this.Brush = (System.Drawing.Brush)obj3;
                    return;
                }

                case 0x9ca:
                {
                    this.Corner = e.GetSize(undo);
                    return;
                }

                case 0x9cb:
                {
                    base.Initializing  = true;
                    this.TopLeftMargin = e.GetSize(undo);
                    base.Initializing  = false;
                    return;
                }

                case 0x9cc:
                {
                    base.Initializing      = true;
                    this.BottomRightMargin = e.GetSize(undo);
                    base.Initializing      = false;
                    return;
                }

                case 0x9cd:
                {
                    base.Initializing = true;
                    this.Orientation  = (System.Windows.Forms.Orientation)e.GetInt(undo);
                    base.Initializing = false;
                    return;
                }
                }
                base.ChangeValue(e, undo);
                return;
            }
            base.ChangeValue(e, undo);
            this.ResetPath();
            return;

Label_00BB:
            base.Initializing = false;
        }
コード例 #36
0
 partial void InternalAccentColorChanged(ChangedEventArgs <Color> e) => RefreshStyles(e.NewValue);
コード例 #37
0
 partial void InternalHeaderContentChanged(ChangedEventArgs <UIElement> e) => UpdatePaneMarginToShowHamburgerButton();
コード例 #38
0
 partial void InternalIsFullScreenChanged(ChangedEventArgs <bool> e) => UpdateControl(e.NewValue);
コード例 #39
0
 partial void InternalHamburgerButtonVisibilityChanged(ChangedEventArgs <Visibility> e)
 {
     HamburgerButton.Visibility = e.NewValue;
     UpdatePaneMarginToShowHamburgerButton();
 }
コード例 #40
0
 partial void InternalDisplayModeChanged(ChangedEventArgs <SplitViewDisplayMode> e)
 {
     UpdateControl();
     UpdateHamburgerButtonGridWidthToFillAnyGap();
 }
コード例 #41
0
ファイル: Summa.Core.Database.cs プロジェクト: wfarr/newskit
        public static void ChangeFeedInfo(string feeduri, string property, string intended_value)
        {
            NonQueryCommand("update Feeds set "+property+@"="""+EscapeParam(intended_value)+@""" where uri="""+EscapeParam(feeduri)+@"""");

            ChangedEventArgs args = new ChangedEventArgs();
            args.Uri = feeduri;
            args.Value = intended_value;
            args.ItemProperty = property;
            FeedChanged("", args);
        }
コード例 #42
0
ファイル: FilterPresenter.cs プロジェクト: ellerre/GoodBikes
 private void RefreshTipo(object sender, EventArgs e)
 {
     RefreshDataGrid(this, ChangedEventArgs.AggiornaFiltro());
 }
コード例 #43
0
 partial void InternalIsOpenChanged(ChangedEventArgs <bool> e)
 {
     UpdateIsPaneOpen(e.NewValue);
     UpdateHamburgerButtonGridWidthToFillAnyGap();
     UpdateControl();
 }
コード例 #44
0
 partial void InternalHamburgerBackgroundChanged(ChangedEventArgs <Brush> e);
コード例 #45
0
 partial void InternalVisualStateWideMinWidthChanged(ChangedEventArgs <double> e);
コード例 #46
0
 partial void InternalNavButtonCheckedForegroundChanged(ChangedEventArgs <Brush> e);
コード例 #47
0
 partial void InternalAccentColorChanged(ChangedEventArgs <Color> e);
コード例 #48
0
 partial void InternalNavButtonCheckedIndicatorBrushChanged(ChangedEventArgs <Brush> e);
コード例 #49
0
 partial void InternalSecondarySeparatorChanged(ChangedEventArgs <Brush> e);
コード例 #50
0
 partial void InternalNavButtonPressedBackgroundChanged(ChangedEventArgs <Brush> e);
コード例 #51
0
 partial void InternalIsFullScreenChanged(ChangedEventArgs <bool> e);
コード例 #52
0
 partial void InternalNavButtonHoverBackgroundChanged(ChangedEventArgs <Brush> e);
コード例 #53
0
 private void sliderRot_RealTimeValueChanged(object sender, ChangedEventArgs e)
 {
     this.cubeTransform.LocalRotation = new Vector3(MathHelper.ToRadians(this.sliderRotX.Value), MathHelper.ToRadians(this.sliderRotY.Value), 0);
 }
コード例 #54
0
 partial void InternalHamburgerButtonVisibilityChanged(ChangedEventArgs <Visibility> e);
コード例 #55
0
ファイル: CardModel.cs プロジェクト: calvinkwong/pol-the-game
 void Visibility_Changed(object sender, ChangedEventArgs<CardVisibility> e)
 {
     ObservableProperty<CardVisibility, CardModel> prop = (ObservableProperty<CardVisibility, CardModel>)sender;
       if(e.OldValue == CardVisibility.Visible && e.NewValue != CardVisibility.Visible)
     prop.Owner.hiddenCode = GetFirstAvaiableHiddenCode();
       else if(e.OldValue != CardVisibility.Visible && e.NewValue == CardVisibility.Visible)
       {
     MakeAvaiableHiddenCode(prop.Owner.hiddenCode);
     prop.Owner.hiddenCode = 0;
       }
 }
コード例 #56
0
 partial void InternalDisplayModeChanged(ChangedEventArgs <SplitViewDisplayMode> e);
コード例 #57
0
 partial void InternalPaneBorderBrushChanged(ChangedEventArgs <Brush> e);
コード例 #58
0
 partial void InternalNavAreaBackgroundChanged(ChangedEventArgs <Brush> e);
コード例 #59
0
ファイル: Summa.Core.Database.cs プロジェクト: wfarr/newskit
        public static void ChangeItemInfo(string feeduri, string itemuri, string property, string intended_value)
        {
            //optimize
            NonQueryCommand("update "+GetGeneratedName(feeduri)+" set "+property+@"="""+EscapeParam(intended_value)+@""" where uri="""+EscapeParam(itemuri)+@"""");

            ChangedEventArgs args = new ChangedEventArgs();
            args.Uri = itemuri;
            args.FeedUri = feeduri;
            args.Value = intended_value;
            args.ItemProperty = property;
            ItemChanged("", args);
        }
コード例 #60
0
 partial void InternalVisualStateNormalDisplayModeChanged(ChangedEventArgs <SplitViewDisplayMode> e) => UpdateVisualStates();