Posts

How to structure the UI and the database

so i'm making application allows user enter/remove data database.. i can make design work, i'm wondering whether best way design it. i have database class, has necessary methods retrieve,add, , remove records database. the way i'm doing right is... i have main window, instantiate other windows (one adding record, 1 deleting record). i thought instantiating database class in main window, , pass add/remove record windows (through constructor), when user click "save" button, the  passed database class instance call add or remove methods. is best way design it? thanks. its complicated couple of forms. keep simple! unless building massive multi-user enterprise class application not need go extent. digital forensic software developer ccs labs digital forensic software mark answer or vote if useful thank you! Visual Studio Languages ...

Split xml to multiple messages in an orchestration- Input Source from two xml message.

Image
biztalk 2006 r2: in mapper, i have 2 source xml messages below. output messages needs split schema2 into multiple messages , output message have header info.   please see example: <schema1> <companyname>xyz inc</companyname> <companyid>2536985</companyid> </schema1>   <schema2> <employees> <employee>    <firstname>abc</firstname>    <lastname>def</lastname> </employee>    <firstname>ghi</firstname>    <lastname>jkl</lastname> </employee> </employees> </schema2>   the final output splits scheam2 indiviual messages and includes values schema1   <desiredoutput> <companyname>xyz inc</companyname> <companyid>2536985</companyid> <employee>    <firstname>abc</firstname>    ...

Bing Transparent Tiles

hi, i looking @ bing map silverlight control , had question regarding transparent tiles.  found program generate 256x256 tiles .osm (containing nodes have created).  works great, looking reduce number of files had upload server strip out of transparent tiles.  noticed silverlight bing controls shows top tiles on lower level if not exist. i wondering if there way turn off (only show tiles on bing map exist), or perhaps tilesource replace tiles didn't exist (404 - not exist error web server) local image or other predefined one? thanks. hello, so, want load own map , replace content bing maps platform not provide imagery. can work zoom level in order manage tilesource (for example, show tiles when zoom level higher 17). after that, maybe using hash of tile image , compare 1 of 'no-image' hash.. it's not quite easy , i'm not sure possible. unfortunately, don't have native solution know if tile loaded not "not available" image. maybe try...

How to move some objects (using the same timer) at an interval of time one to another?

1. i have 1 or more objects (they panel or button or picturebox or etc.) 2. have button (e.g. button1 ) 3. i have timer (e.g. timer1 ) move object right 4. when click on button1 , want multitude of object move right (all objects accessing same timer1 )  5. the idea is : want objects start moving right @ interval of 0.5 seconds 1 another. what should do? var observable = observable.timer(timespan.fromseconds(5), timespan.fromseconds(1)).timestamp(); var objects = panel.controls.where(p=>p.gettype()== button); observable.subscribe( x => //move objects using x , y coordinates ); jp cowboy coders unite! Visual Studio Languages  ,  .NET Framework  >  ...

Network Streaming

hello,   i having lot of trouble debugging program. whenever run "server" console, job of connecting , sending bytes "client", says "connected client" twice. not this, have send message twice client read it. know problem? appreciated.   here server code: using system; using system.text; using system.net.sockets; using system.threading; using system.net; namespace testtwo {     public class server     {         private tcplistener tcplistener;         private thread listenthread;         public static byte[] strtobytearray(string str)         {             system.text.utf8encoding encoding = new system.text.utf8encoding();           ...

C# COM wrapper registry update/clear

Image
yo .net dudes: seeking expert guidance on how go c# com registries got c# com wrapper called classic asp legacy system. trouble each time modify class or function in c# com wrapper, doesn't reflect in registries. here's followed c# com new com: http://msdn.microsoft.com/en-us/library/c3fd4a20.aspx should write c# exe clear although following batch script got clearing doesn't hit nail on head. although c# com has got lot of classes , functions here’ s example code snippet of how go coding   the c# com wrapper // c# code (classicaspcom.dll) built strong name , registered com interop in visual studio 2005 (.net framework 2.0) , windows 7: using system; using system.runtime.interopservices; namespace classicaspcom {   [comvisibleattribute(true)]      [guid("4042fe79-8aca-4e5d-9f14-2ff7c6ae8d88")]      public interface igetmessage      {        ...

Generate 997 Incorrectly sets GS02/03 values

i working on edi project biztalk server 2006 r2. trading partner needs receive 997 functional acknowledgements upon receipt of messages receive on server them. clicked on party property of "generate 997". testing purposes, selected preserve interchange see isa/gs values make sure correct before sending trading partner. when testing after these configuration changes , restarting host instance , biztalk application, looked @ suspended 997 message based on received message, , gs02 , gs03 values were directly receive message. outside of testing take off preserve interchange old isa/gs headers not still around in edi message.   in order send 997 trading partner have switch these values, moving gs02 gs03 , vice versa the message routed appropriately once it gets to my van.  by way , isa05/06 , 07/08 pairs correct sending out - these values switched me already, gs02/03 not switched.   so question whether other people have problem of gs02/03 values being in 997 incorrectly. o...