public AD7DocumentContext(string fileName, TEXT_POSITION begPos, TEXT_POSITION endPos, AD7MemoryAddress codeContext, FrameKind frameKind) { _fileName = fileName; _begPos = begPos; _endPos = endPos; _codeContext = codeContext; _frameKind = frameKind; }
public void SetThreadAndFrameCommand(long thread, int frame, FrameKind frameKind) { using (new StreamLock(this, throwIfDisconnected: true)) { _stream.Write(SetThreadAndFrameCommandBytes); _stream.WriteInt64(thread); _stream.WriteInt32(frame); _stream.WriteInt32((int)frameKind); _currentScope = "<CurrentFrame>"; } }
public PythonStackFrame(PythonThread thread, string frameName, string filename, int startLine, int endLine, int lineNo, int argCount, int frameId, FrameKind kind) { _thread = thread; _frameName = frameName; _filename = filename; _argCount = argCount; _lineNo = lineNo; _frameId = frameId; _startLine = startLine; _endLine = endLine; _kind = kind; }
private void ShowTabListInFrame(UndoneWorkKind undoneWork, FrameKind kind, FrameFunction function, bool OKEnabled, bool CancelEnabled, bool showCheckBox, bool multiselecting, GameObjectList gameObjectList, GameObjectList selectedObjectList, string title, string tabName) { this.GameFramePlugin.Kind = kind; this.GameFramePlugin.Function = function; this.TabListPlugin.InitialValues(gameObjectList, selectedObjectList, this.screen.MouseState.ScrollWheelValue, title); this.TabListPlugin.SetListKindByName(kind.ToString(), showCheckBox, multiselecting); this.TabListPlugin.SetSelectedTab(tabName); this.GameFramePlugin.SetFrameContent(this.TabListPlugin.TabList, this.screen.viewportSize); this.GameFramePlugin.OKButtonEnabled = OKEnabled; this.GameFramePlugin.CancelButtonEnabled = CancelEnabled; this.GameFramePlugin.IsShowing = true; }
public void SetThreadAndFrameCommand(long thread, int frame, FrameKind frameKind) { using (new StreamLock(this, throwIfDisconnected: true)) { _stream.Write(SetThreadAndFrameCommandBytes); _stream.WriteInt64(thread); _stream.WriteInt32(frame); _stream.WriteInt32((int)frameKind); // TODO: Localization: we may need to do something with <CurrentFrame> string. Is it displayed? // It also appears visualstudio_py_repl.py so it probably needs to be in sync with it. _currentScope = "<CurrentFrame>"; _currentScopeFileName = null; } }
private void SendData(FrameKind fk, byte frameNb, byte frameExpected, Packet[] buffer) { Packet data = null; if (fk == FrameKind.Data) { data = buffer[frameNb % _NR_BUFS]; } else { data = new Packet { Data = new byte[1] { (byte)0 } } }; //envoie packet de 0. Pas utilise par application if (fk == FrameKind.Nak) { _no_nak = false; } // Construct and send a data frame. Frame frame = new Frame { /* insert packet into frame */ Kind = fk, Info = data, /* insert sequence number into frame */ Seq = frameNb, /* piggyback ack */ Ack = (byte)((frameExpected + _MAX_SEQ) % (_MAX_SEQ + 1)) }; //Encode frame with Hamming protocol Frame frameEncoded = Hamming.encodeHamming(frame); /* transmit the frame */ ToPhysicalLayer(frameEncoded); /* start the timer running */ if (fk == FrameKind.Data) { StartTimer(frameNb % _NR_BUFS); } StopAckTimer(); } #endregion }
internal static void GetLanguageInfo(this FrameKind self, ref string pbstrLanguage, ref Guid pguidLanguage) { switch (self) { case FrameKind.Django: pbstrLanguage = "Django Templates"; pguidLanguage = Guid.Empty; break; case FrameKind.Python: pbstrLanguage = "Python"; pguidLanguage = DebuggerConstants.guidLanguagePython; break; default: throw new InvalidOperationException(); } }
public void SetThreadAndFrameCommand(long thread, int frame, FrameKind frameKind) { using (new SocketLock(this)) { Stream.Write(SetThreadAndFrameCommandBytes); Stream.WriteInt64(thread); Stream.WriteInt32(frame); Stream.WriteInt32((int)frameKind); _currentScope = "<CurrentFrame>"; } }
public void ShowBianduiLiebiao(UndoneWorkKind undoneWork, FrameKind kind, FrameFunction function, bool OKEnabled, bool CancelEnabled, bool showCheckBox, bool multiselecting, GameObjectList gameObjectList, GameObjectList selectedObjectList, string title, string tabName,int bingyi) { //if ((gameObjectList != null) && (gameObjectList.Count != 0)) { this.Plugins.BianduiLiebiao.Kind = kind; this.Plugins.BianduiLiebiao.Function = function; this.Plugins.BianduiLiebiao.ShezhiBingyi(bingyi); this.Plugins.BianduiLiebiao.InitialValues(gameObjectList, selectedObjectList, this.mouseState.ScrollWheelValue, title); this.Plugins.BianduiLiebiao.SetListKindByName(kind.ToString(), showCheckBox, multiselecting); this.Plugins.BianduiLiebiao.SetSelectedTab(tabName); //this.Plugins.GameFramePlugin.SetFrameyoucelanContent(this.Plugins.youcelanPlugin.TabList, base.viewportSize); //viewportSize 游戏内容窗口的大小 this.Plugins.BianduiLiebiao.SetyoucelanContent(base.viewportSize); //viewportSize 游戏内容窗口的大小 //this.Plugins.GameFramePlugin.shiyoucelan = true; //this.Plugins.GameFramePlugin.OKButtonEnabled = OKEnabled; //this.Plugins.GameFramePlugin.CancelButtonEnabled = CancelEnabled; //this.Plugins.GameFramePlugin.IsShowing = true; //this.Plugins.youcelanPlugin.IsShowing = true; this.Plugins.BianduiLiebiao.IsShowing = true; this.Plugins.youcelanPlugin.IsShowing = false ; this.Plugins.ContextMenuPlugin.ShezhiBianduiLiebiaoXinxi(this.Plugins.BianduiLiebiao.IsShowing, this.Plugins.BianduiLiebiao.Weizhi); } }
public void SetTabListInFrame(UndoneWorkKind undoneWork, FrameKind kind, FrameFunction function, bool OKEnabled, bool CancelEnabled, bool showCheckBox, bool multiselecting, GameObjectList gameObjectList, GameObjectList selectedObjectList, string title, string tabName) { if ((gameObjectList != null) && (gameObjectList.Count != 0)) { this.Plugins.GameFramePlugin.Kind = kind; this.Plugins.GameFramePlugin.Function = function; this.Plugins.TabListPlugin.InitialValues(gameObjectList, selectedObjectList, this.mouseState.ScrollWheelValue, title); this.Plugins.TabListPlugin.SetListKindByName(kind.ToString(), showCheckBox, multiselecting); this.Plugins.TabListPlugin.SetSelectedTab(tabName); this.Plugins.GameFramePlugin.SetFrameContent(this.Plugins.TabListPlugin.TabList, base.viewportSize); this.Plugins.GameFramePlugin.OKButtonEnabled = OKEnabled; this.Plugins.GameFramePlugin.CancelButtonEnabled = CancelEnabled; //this.Plugins.GameFramePlugin.IsShowing = true; } }
public _Frame(Visual visual, FrameKind kind) : base(visual) { Kind = kind; }
/// <summary> /// Frame a visual with a rectangle. /// </summary> public static Visual Frame(Visual visual, FrameKind kind, bool filled = false) { return new _Frame (visual, kind, filled); }
public void SetThreadAndFrameCommand(long thread, int frame, FrameKind frameKind) { if (_curListener != null) { _curListener.SetThreadAndFrameCommand(thread, frame, frameKind); } }
public _Frame(Visual visual, FrameKind kind, bool filled) : base(visual) { Kind = kind; Filled = filled; }
protected override void DrawFrameCore(GraphicsCache cache, SkinElementInfo info, FrameKind kind) { var formBorderColor = GetFormBorderColor(); cache.FillRectangle(formBorderColor, info.Bounds); }
/// <summary> /// Frame a visual with a rectangle. /// </summary> public static Visual Frame(Visual visual, FrameKind kind) { return new _Frame (visual, kind); }
/// <summary> /// Frame a visual with a rectangle. /// </summary> public static Visual Frame(Visual visual, FrameKind kind, bool filled = false) { return(new _Frame(visual, kind, filled)); }