private void bw_DoWork(object sender, DoWorkEventArgs e) { DSRunnableProgram.Register <ILogger, Logger>("guiLogAction", new Action <Logger.LogItem>(s => AddLog(s))); DSRunnableProgram.Init(); Invoke((MethodInvoker) delegate { var runnable = DSRunnableProgram.Resolve <IServerRunnable>(); this.Text = String.Format("MUTDOD Data Server: {0}", runnable.Name); textBox1.Text = runnable.Adress; }); }
public static void Main(string[] args) { DSRunnableProgram.SetConsoleWindowPosition(700, 50); DSRunnableProgram.Main(args); }