Format:
Recent snippets for: mikecvelide
// writing document new XDocument( new XElement("data", new XElement("automatic_updates", 1), new XElement("install_mscreens", 0))).Save("c:\\test.xml"); // reading back var doc = XDocument.Load("c:\\test.xml"); var update = doc.Element("data").Element("automatic_updates").Value == "1";
152 Views
no comments
if (componentID == 0 && mgr != null) { OLECRINFO[] crinfo = new OLECRINFO[1]; crinfo[0].cbSize = (uint)Marshal.SizeOf(typeof(OLECRINFO)); crinfo[0].grfcrf = (uint)_OLECRF.olecrfNeedIdleTime | (uint)_OLECRF.olecrfNeedPeriodicIdleTime; crinfo[0].grfcadvf = (uint)_OLECADVF.olecadvfModal | (uint)_OLECADVF.olecadvfRedrawOff | (uint)_OLECADVF.olecadvfWarningsOff; crinfo[0].uIdleTimeInterval = 1000; int hr = mgr.FRegisterComponent(this, crinfo, out componentID);
207 Views
no comments
private readonly SortedList<Distance, List<BearingPoint>> pointsByX; private readonly SortedList<Distance, List<BearingPoint>> pointsByY; ... Point targetPoint; var bestMatch = (from pt in (from kvp in pointsByX
200 Views
no comments
public class Command : IExternalCommand { public IExternalCommand.Result Execute(ExternalCommandData commandData, ref string message, ElementSet elements) { System.Diagnostics.Debugger.Break(); MessageBox.Show("test"); return IExternalCommand.Result.Succeeded; } }
201 Views
no comments
Subscribe
Discuss
What's new
What is it
New Snippet
Recent Snippets
My Snippets
Web Code
Search
