private static void notifyOpc(string lcode) { var param = new OPCParam(); IOpcClient client; #if DEBUG client = new FakeOpcClient(param); #else client = new OPCClient(); #endif client.Open(clsSetting.OPCServerIP); param.DeleteLCode = new LCodeSignal(client, "DeleteLCode"); PlcHelper.NotifyLabelCodeDeleted(client, param, lcode); }