private void myGridViewBinding1_GridDataTableDisplayValueNeeded(object sender, MyLib.UI.MyGridDataTableDisplayValueNeededArgs e) { if (e.Key == "url") { #if DEBUG e.Value = Properties.Settings.Default.Rpc_BaseUrlDebug + Commons.AddUrlTail(URLTYPES.VISIT) + e.Value; #else e.Value = Properties.Settings.Default.Rpc_BaseUrl + Commons.AddUrlTail(URLTYPES.VISIT) + e.Value; #endif } }
static void Main() { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); log4net.Config.XmlConfigurator.Configure(); #if DEBUG UnsafeNativeMethods.AllocConsole(); Rpc.Http.BaseUrl = Properties.Settings.Default.Rpc_BaseUrlDebug + Commons.AddUrlTail(URLTYPES.VISIT); Rpc.Http.FileUrl = Properties.Settings.Default.Rpc_BaseUrlDebug + Commons.AddUrlTail(URLTYPES.FILE); #else Rpc.Http.BaseUrl = Properties.Settings.Default.Rpc_BaseUrl + Commons.AddUrlTail(URLTYPES.VISIT); Rpc.Http.FileUrl = Properties.Settings.Default.Rpc_BaseUrl + Commons.AddUrlTail(URLTYPES.FILE); #endif Application.Run(new MainFrm()); Properties.Settings.Default.Save(); #if DEBUG UnsafeNativeMethods.FreeConsole(); #endif }
private void btnUpdateURL_Click(object sender, EventArgs e) { System.Diagnostics.Process.Start(Properties.Settings.Default.Update_BaseUrl + Commons.AddUrlTail(URLTYPES.UPDATE) + "/index.jsp"); }